Forex Factory (https://www.forexfactory.com/)
-   Platform Tech (https://www.forexfactory.com/forum/69-platform-tech)
-   -   Any coder for this strategy plz? (https://www.forexfactory.com/thread/1033877-any-coder-for-this-strategy-plz)

tai9127 Oct 15, 2020 11:01pm | Post# 1

Any coder for this strategy plz?
 
If current candle closed higher than “previous candle” high,do buy trade,close trade when new candle close no matter win or lose,and this candle becomes”previous candle” then back to first.

Else

If current candle closed lower than “previous candle” low,do sell trade,close trade when new candle close no matter win or lose,and this candle becomes”previous candle” then back to first.

Do x3 lot martingale when stoploss.

suppose candle1 as based candle, candle2 as signal candle, candle3 as entry candle.
if 2 closed higher than 1, 3 do buy trade,else if 2 closed lower than 1, 3 do sell trade.
when 3 closed. 3 become candle1.And back to first.

https://www.forexfactory.com/thread/...ing-system-tai

tai9127 Oct 19, 2020 11:02am | Post# 2

1,First when the EA enable,we have to confirm a base candle no matter bull or bear.

2,When this base candle close,next candle we called signal candle.
Here we got two conditions,Bull or Bear.

2-1 When the signal candle close in bull,we start buy when this signal candle close.
2-2 When the signal candle close in bear,we start sell when this signal candle close.

3,we called this candle as exit candle and also signal candle.
No matter win or lose,it become signal candle(2-1//2-2)

retyaditya Oct 19, 2020 11:54am | Post# 3

Which one u wanna trade this EA? MT4 or MT5 ?

tai9127 Oct 19, 2020 12:41pm | Post# 4

Which one u wanna trade this EA? MT4 or MT5 ?
Prefer to MT4.

tai9127 Oct 19, 2020 12:45pm | Post# 5

For backtesting
Should better use grid to identify renko box size.
From current price,
up/down xpips for bull/bear candle

tai9127 Oct 23, 2020 4:57am | Post# 6

Anyone?

tai9127 Oct 23, 2020 4:58am | Post# 7

1 Attachment(s)
Click to Enlarge

Name: 65D06F99-4A67-460B-A958-AE990F2A2B76.png
Size: 1.3 MB

tai9127 Oct 26, 2020 3:29am | Post# 8

Can open trade now. But how to close trade when new candle open and wait new candle close to entry trade?
Inserted Code
void OnTick()
{ if(Time[0] > tlast)
{ if(Close[0] < Close[1])
bool res = OrderSend(_Symbol, OP_SELL, lot, Bid, slippage, 0, 0);
else
if(Close[0] > Close[1]) bool res = OrderSend(_Symbol, OP_BUY, lot, Ask, slippage, 0, 0); }
tlast = Time[0]; }


© Forex Factory