Auftrag beendet
![](https://c.mql5.com/i/avatar/avatar_na2.png)
![](https://c.mql5.com/i/avatar/avatar_na2.png)
Spezifikation
Steps :
1) draw a green horizontal line at new high.
2) if price continue go up, then move the old green horizontal line to new high.
3) if price go down at least 30 points from the green line just now, then draw a purple horizontal line at new low.
4) if price continue go down, then move the old purple horizontal line to new low.
5) when price go up cross green line to form a new high, then check if purple line is exist, if exist then dont move green line to new high and draw lightblue line at new high. If purple line is not exist then move green line to new high, dont draw lightblue line. Code something like :
if (current price > geen line){
check_Purple_Line();
}
function check_Purple_Line(){
if (PurpleLine exist) && (current_price > greenline){
draw lightblue new line at new high;
}elseif (PurpleLine NOT exist){
move green line to new high;
}
}
6) if current price cross Purple line, then check if lightblue line is exist or not. If exist, then dont move Purple line to new low, but must change Purple line to pink color. (the difference between purple and pink is purple color mean price not yet touch the previous neck line of head&shoulder, pink color mean current price touch the previous neck line of head&shoulder already).
7) if current price is 10 points from green line, then check if lightblue line and pink line are exist or not? If both line are exists, then pop up alert ("Audjpy ready to sell).
8) if current price touch green line, then check if (lightblue line) AND (pink line) are exist or not? If both line are exists, then draw down lightblue arrow at the candle that touch green line. If pink line dont exist but purple line exist, then draw yellow arrow, dont draw lightblue arrow.
9) All line stop once draw arrow. Repeat step 1 to 8 to find new head&shoulder signal.
10) Above step 1 to 9 is for sell signal when head&shoulder pattern form right shoulder. Please code opposite way from step 1 to 9 for buy signal when head&shoulder form the right shoulder.
I am not sure how hard to do this job, just quote me the price and i will change the job price to pay u. Thanks.