Plotting Help

asnavale

Well-Known Member
#11
Anant, is there any function that restricts condition for specific time frame ??

For Eg. What If I want to calculate the highest high from 22Jan2009 to 23rd Feb 2009. Is there a specific function to write this ...

Thanks

Raunak
Hi raunak,

I think there is no such built-in function. we have to use 'for(...)' loop to get the result.

-Anant
 
#12
Anant has mentioned this condition,

Cond2 = atan(V1 -V2) > PI/6; (π/6)

Now PI has value of 180 degrees ... it is more of a geometric concept... so when u r testing the rule for 30 degrees ... u use PI/6 (180/6)...

degrees are defined such that there are 360 in a full circle. Size of circle does not matter. A degree is a measure of how "wide" an angle is.For a circle, the circumference is 2π. This equals 360. If you divide this by two, you can see why 180 = π (pie) radians.

hope its clear ... for more info refer to atan function ...
Thanks Raunak. Appreciate your explanation.
 

pkgmtnl

Well-Known Member
#13
BUY

Cond1 = MACD(r1,r2)>Ref(MACD(r1,r2),-1);

SELL

Cond2 = Ref(MACD(r1,r2),-1)>MACD(r1,r2);

I want to plot a Dot when this condition first comes in chart just above or below,

kindly guide me to write syntax to plot this point.
 
Last edited:
#14
_SECTION_BEGIN("Price ");

Plot(C, "", IIf(C > O, colorBrightGreen, colorRed), ParamStyle("Price Style", styleCandle, maskPrice));

Title = FullName()+" - "+Name()+"\nO:"+O+", H:"+H+", L:"+L+", C:"+C;
_SECTION_END();

_SECTION_BEGIN("EMA");

P = ParamField("Price field",-1);
Periods = Param("Periods", 20, 2, 300, 1, 10 );
Plot( EMA( P, Periods ), _DEFAULT_NAME(), ParamColor( "Color", colorCycle ), ParamStyle("Style") );

Buy=Cross(C, EMA( P, Periods));
Sell=Cross(EMA( P, Periods),C);
PlotShapes(IIf(Buy,shapeUpArrow,shapeNone),colorCu stom11);
PlotShapes(IIf(Sell,shapeDownArrow,shapeNone),colo rCustom12);

_SECTION_END();

PLease Help I need Code Here For Exit All position At End OF The Day (3.29pm) For Becktesting Please Please please Help
 

Similar threads