PureBytes Links
Trading Reference Links
|
Hello senior members,
I am using this below formula which plots rectangle ,
I need your kind help to divide this into 10 equal parts. or give scaling from 0 to 10 [ bottom 0 and top 10 ]
//Formula
// THE LOW_LEVEL GRAPHICS FOR THE CHART:
MainChartWidth = Status("pxchartwidth");
MainChartHeight = Status("pxchartheight");
Font= ParamList("Font:","Arial|Calibri|Futura|Tahoma|Times New Roman", 0);
ChartColor= ParamColor("Background Color", colorWhite);
ChartColor= ParamColor("Background Color", colorWhite);
X_Location= Param("X Location", 700, 1, MainChartWidth, 1);
Y_Location= Param("Y Location", 10, 1, MainChartHeight, 1);
ChartWidth= Param("Chart Width", 15, 1, MainChartWidth, 1);
ChartHeight= Param("Chart height", 60, 1, MainChartHeight, 1);
// GfxSetOverlayMode(Transparent);
x1Chart = X_Location;
y1Chart = Y_Location;
x2Chart = X_Location + ChartWidth;
y2Chart = Y_Location + ChartHeight;
// THE PLOT AREA:
HeightPercent = 0.05;
CellHeight = (HeightPercent * ChartHeight/2);
RightMargin = 0.05;
UpperLimit= y1Chart + ((HeightPercent + 0.01) * ChartHeight);
LowerLimit= y1Chart + ((1 - HeightPercent - 0.01) * ChartHeight);
LeftLimit = x1Chart + 1;
RightLimit= X_Location + (ChartWidth * (1 - RightMargin));
// Draw the Chart Area:
GfxSelectPen(colorBlack);
GfxSelectSolidBrush(ChartColor);
GfxRectangle(x1Chart, y1Chart, x2Chart, y2Chart);
Thank you and sorry for giving you trouble
------------------------------------
**** IMPORTANT PLEASE READ ****
This group is for the discussion between users only.
This is *NOT* technical support channel.
TO GET TECHNICAL SUPPORT send an e-mail directly to
SUPPORT {at} amibroker.com
TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
http://www.amibroker.com/feedback/
(submissions sent via other channels won't be considered)
For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/amibroker/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/amibroker/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:amibroker-digest@xxxxxxxxxxxxxxx
mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx
<*> To unsubscribe from this group, send an email to:
amibroker-unsubscribe@xxxxxxxxxxxxxxx
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|