I am just learning the basics of writing AB formulas and I am stuck already.
I have a very simple formula written which ends in -
Buy = BuySignal AND above;
Short = SellSignal AND below;
IIf( (Buy),PlotShapes(shapeUpTriangle*Buy,colorGreen),0);
IIf( (Short),PlotShapes(shapeDownTriangle*Short,colorRed),0);
1. I want to put 2 OCO stops on each trade at +40 and -40 points. How do I write this into the formula?
2. I want which ever stop is activated to display on the chart like it did with the buy and sell signals. How do I do this?
3. What is the difference between "cover" and stops? Isn't a position cover already a stop?
I'm confused, any help appreciated.
I have a very simple formula written which ends in -
Buy = BuySignal AND above;
Short = SellSignal AND below;
IIf( (Buy),PlotShapes(shapeUpTriangle*Buy,colorGreen),0);
IIf( (Short),PlotShapes(shapeDownTriangle*Short,colorRed),0);
1. I want to put 2 OCO stops on each trade at +40 and -40 points. How do I write this into the formula?
2. I want which ever stop is activated to display on the chart like it did with the buy and sell signals. How do I do this?
3. What is the difference between "cover" and stops? Isn't a position cover already a stop?
I'm confused, any help appreciated.