am developing a strategy for RENKOBARS 10/5 in which the entry is made when the price breaks the ParabolicSAR indicator, buying above and selling below. The Stop is set with a limit order which trails as the indicator moves. Additionally, a Fibonacci retracement is drawn in the space between the upper and lower ParabolicSAR (see image). Finally, the Profit has been calculated at Fibonacci levels of 25% and 61.8% (2 contracts) OR 61.8% and 100% (defined by user) **Here im havingsome problems too, when I change the FIBO level Profit it only submits 1 contract... WHY???.
I am having difficulties here as initially the profit orders were executed without any problem, but after fixing and properly configuring the Stop, the profit orders (ExitLongLimit) disappear 1 second after the order is executed... leaving the Stop trailing without any profit order for the two contracts. Attached you can find the code I have created, with various Stop options (ParabolicSAR/Supertrend/Swing), as well as entry options (SAR/MOMENTUM/MA).
Please, can you help me find the error that is causing the immediate closure of these operations? I attach images of the configuration and how the strategy would look in LONG.
On the other hand, I want to set up a new variable (BOOL) whereby the stop remains still when entering at the ParabolicSAR price (beginning the entry without trailing). How can I do this?
And finally, is it possible to include a Sell order with double the selected contracts after hitting a Buy stop, so that if the entry in LONG hits the Stop... a Sell entry with double the contracts is executed to recover the position.
Thanks a lot!!!
Comment