Daily Pivot Point Buy Sell Target Stop & Reversal

How to Place Buy Sell Target Stop & Reversal 

Daily Pivot Point R1, R2, R3, PP, S1, S2, S3

Condition 1: If Opening is below PP and a running candle breach of PP then Buy with Target of R1 and Stop Loss & Reversal at S1

Condition 2: If Opening is above PP and a running candle breach of PP then Sell with Target of S1 and Stop Loss & Reversal at R1

Condition 3: No Trades if prices move above R3

Condition 4: No Trades if prices move below S3

Please share what you have tried so far. No pain, no gain!

I know codes based on closing but not on opening and running candle breach

Buy=Cover=Cross (C, PP);
Sell=Short= Cross (PP ,C);
 
shape = Buy * shapeUpArrow + Short * shapeDownArrow;
PlotShapes( shape, IIf( Buy, colorGreen, colorRed ), 0, IIf( Buy, Low, High ) );

You can tweak the below as per your needs.

upBar = C > O;
dnBar = C < O;

Buy = Cover = L < PP AND H > PP AND upBar;
Sell = Short = L < PP AND H > PP AND dnBar;

shape = Buy * shapeUpArrow + Short * shapeDownArrow;
PlotShapes( shape, IIf( Buy, colorGreen, colorRed ), 0, IIf( Buy, Low, High ) );
1 Like

ok thanks,
how do I set the target and no trade criteria beyond R3 and S3