Pine Script, trading view strategy...
Budget: €30 – €250 EUR
Please watch my video to understand my project: https://www.loom.com/share/4b0c776eaf154fcbbb812034d3cf43f9
In order to create a deal .... all conditions must be met.
____________________________________________________________________________________
What I want is the following:
Example:
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
Only If
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
In order to create a deal .... all conditions must be met.
____________________________________________________________________________________
What I want is the following:
Example:
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
Only If
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