Please watch my video to understand my project: [login to view URL]
In order to create a deal .... all conditions must be met.
What I want is the following:
Min consecutive bars = 2
Duration = 8
Opposite Bars = 1
Condition 1 ---- If "Min consecutive bars" = 2
Condition 2 ---- open a deal with "Min Bars" Duration = 8
Condition 3 ---- The opposite bars condition will NOT be met until bar 8
That it means, that if on bar 5..... Conditions 3 is met......script must not create the deal .... because the targeted duration was 8 bars.
Definition of Condition 3
For Upward trend ---- the Closing price of the opposite Bars (Red)...is lower than the open price of the last Green Bar
For downward trend ---- the Closing price of the opposite Bars (Green)....exceed the open price of the last Red Bar.
I already have a strategy which works partially.
The attached strategy takes into account correctly only conditions 1 and 2.
If you wish you can work on this strategy and create your own from scratch
7 freelancers are bidding on average €151 for this job
I always put the needs of the customer first I take my credit to ensure the product will be completed fastest and of the highest quality. Looking forward to working with you. Thank you