Техническое задание
Hi, Thanks for looking at my requirement.
Here are the details of the job and right now, we do have 2 jobs to do in same file.
The clear detailed explanation along with the pictures are in the google drive link :
https://drive.google.com/drive/folders/14KMGzunkE-Hbg0eK6iUrs4DNvRetTJYc?usp=sharing
Also, i am into this coding thing for more than 2 years now full time. I am a math guy and not a coder. So the requirements will be in top notch:)
Let me know, if you interested to take this up :)
Experienced Coders is what i need and i have multiple works followed by this.
Wish to work with you soon.
Regards
Here are the job details:
Avoid Extended Entry Using MA & ADR:
ADR Indicator:
In ADR indicator, we have a buffer named: ADR pips.
Now, we need to get the value of X % of ADR:
Let’s consider 15% of ADR. Input needed in the indicator.
Now, use TF as M15(Default)
Input needed for this as well.
Breaker Candle:
For Buy:
The Open of the candle should be below the 20EMA(M15)
And close should be above the 20EMA(M15)
Green Arrows are breaker candles.
For Sell:
The Open of the candle should be above the 20EMA(M15)
And close should be below the 20EMA(M15)
Red arrows are breaker candles.
Now, for every candle, consider the difference between the close of the candle and the MA value in the recent breaker candle.
For buy:
GBPCAD Example: 21st August. Time: 15:30 (M15) is the last breaker candle.
MA Value (20EMA) = 1.77280
ADR Pips : 82.8
15% of ADR pips: = 15% * 82.8 = 12.42 pips.
Now, check all the candle low price:
If the candle low price is 12.42 pips above the 1.74414 they are not valid.
Ie. 1.74414 + 0.001242 (12.42/10000 for all pairs and for JPY divide by 100)
=1.745382
So, new entries are valid, only if the candle low is less than 1.745382
For sell:
Usdjpy: 20th August: 10:00 (M15)
MA Value: 146.963
ADR pips: 215.85
15% of ADR pips: = 15% * 215.85 = 32.37 pips.
Now, check all the candle high price:
If the candle high price is 32.37 pips below the 146.963 they are not valid.
Ie: 146.963 - 0.032378(32.7/100 for JPY pairs and for other pairs divide by 10000)
=146.63 So, new entries are valid, only if the candle high is above than 146.63
Buffers to be added:
Breaker Buy Valid: 1
Breaker Sell Valid: 1
Add it to all candles, which are valid in the above method.
20EMA Buy Valid: 1 (if the candle is below the 20EMA)
20EMA Sell Valid: 1 (if the candle is above the 20EMA)
Total Buy Valid: Breaker Buy Valid + 20EMA Buy Valid
Total Sell Valid: Breaker Sell Valid + Breaker Sell Valid
The above total buy buffer, will either print as 0 or 1. It can’t be 2, if the price is above 20ema, 20 ema buy valid will be 0. And breaker buy valid will only work as 0 or 1.
Integration to Shriyaa EA:
Whenever a trade is about to enter, check Total Buy Valid and Total Sell Valid in this indicator buffer.
Only if they are 1 in the respective direction, a trade is allowed, if not print a log: for buy:
Trade is restricted due to Total Breaker Valid on Pair (XXX) for Buy
For sell:
Trade is restricted due to Total Breaker Valid on Pair (XXX) for Sell
For Sell: the vertical line is the breaker candle and the tick mark will be the last entry candle for sell
Green horizontal line will be the maximum limit and the blue zone candles are only valid for entries.
For Buy: the vertical line is the breaker candle and the tick mark will be the last entry candle for buy
Green horizontal line will be the maximum limit and the blue zone candles are only valid for entries.