RicxParticipant
Junior
I want to create a system to use on forex markets following 4 conditions, however I don’t know how to write a code matching them. Can anybody help me out or tell me where I can learn how to write codes like this?
Conditions to enter long:
- Price > MA50
- SET UP BAR – Look to buy when close is in the top 25% of the bar’s range
- Either the set up bar or the previous bar is the lowest low of the last 5 bars
- Enter market on the next bar, only when and if the price trades 1 pip above the set up bar’s high
Thx in advance 🙂
C1=close>Average[50](close)
C2=close>=low+range*0.75
C3=low=lowest[5](low) or low[1]=lowest[5](low)
IF C1 AND C2 AND C3 THEN
BUY AT HIGH+PIPSIZE STOP
ENDIF
The fina buy condition makes no sense. It states “buy if the bar trades 1 pip over it’s own high”. Obviously this will never come true. I replaced it with a stop order.
How to code such simple conditions you learn by reading the two manuals proorder/probuilder, very simple.