Commodities Trading Diary

#46
crude oil my chart shorted at 5951 with sl at cost now for target 5920
Boaders,

Can you please help me with this :

1) A bar whose entire range exceeds the last 10 bars by at least 2.5 to 3 times
2) A bar that exceeds the previous bars range.

For condition 1 a green dot should appear under the bar
For condition 2 an red dot should appear under the bar

It was coded :

condtn1 = ((H-L) > Ref(atr(10),-1)*2.5);
condtn2 = (H > Ref(H, -1)) OR (L < Ref(L, -1));

PlotShapes(condtn1, colorGreen);
PlotShapes(condtn2, colorRed);

But in my Ami 5.30 version .... the colors for the arrows are same .. They are all orange ..... Anything wrong ??

Thanks


Crude now @ 5938 ...... Hope Ur trailing it with stops ..
 

boarders

Well-Known Member
#47
condtn1 = ((H-L) > Ref(ATR(10),-1)*2.5);
condtn2 = (H > Ref(H, -1)) AND (L < Ref(L, -1));

il=L-0.05;
ih=H+0.05;

PlotShapes(IIf(condtn1, shapeSquare, shapeNone),colorGreen, 0, iL, Offset=-40);
PlotShapes(IIf(condtn1, shapeSquare, shapeNone),colorGreen, 0,iL, Offset=-50);
PlotShapes(IIf(condtn1, shapeUpArrow, shapeNone),colorBrightGreen, 0,iL, Offset=-45);
PlotShapes(IIf(condtn2, shapeSquare, shapeNone),colorRed, 0, iL, Offset=-55);
PlotShapes(IIf(condtn2, shapeSquare, shapeNone),colorRed, 0,iL, Offset=-65);
PlotShapes(IIf(condtn2, shapeUpArrow, shapeNone),colorDarkRed, 0,iL, Offset=-60);

CRUDE EXITTED AT 5935 ALREADY AND NOW OUTSIDE BAR SO NO TRADES IN HAND, WAITING
 
#48
condtn1 = ((H-L) > Ref(ATR(10),-1)*2.5);
condtn2 = (H > Ref(H, -1)) AND (L < Ref(L, -1));

il=L-0.05;
ih=H+0.05;

PlotShapes(IIf(condtn1, shapeSquare, shapeNone),colorGreen, 0, iL, Offset=-40);
PlotShapes(IIf(condtn1, shapeSquare, shapeNone),colorGreen, 0,iL, Offset=-50);
PlotShapes(IIf(condtn1, shapeUpArrow, shapeNone),colorBrightGreen, 0,iL, Offset=-45);
PlotShapes(IIf(condtn2, shapeSquare, shapeNone),colorRed, 0, iL, Offset=-55);
PlotShapes(IIf(condtn2, shapeSquare, shapeNone),colorRed, 0,iL, Offset=-65);
PlotShapes(IIf(condtn2, shapeUpArrow, shapeNone),colorDarkRed, 0,iL, Offset=-60);

CRUDE EXITTED AT 5935 ALREADY AND NOW OUTSIDE BAR SO NO TRADES IN HAND, WAITING

Back .... Thanks a lot Boarders ..
 
#50
The worst will be over for Copper @ 417.9 ... is what my charts say ...

I may be wrong .... Lets see ...

Copper low @ 417.75 ........ Now bounced to 419 ....

It should hold 417.5 on closing basis .... then we can see some pull back ...

Just my view ..
 

Similar threads