please help me construct a horizontal line and system as follow:
1/ take the value 35278 ( highes vol in aliev_fx_volume)
2/ draw in the aliev_x_volume chart a Horizontal line through 35278/divider
3/ when there are 2 bars of same color (skyblue, maroon, blue or red) appearing above the hori volume line, give signal & @ which position, so that we can trigger at next open order designated to that color( if prev price && 2x red or maroon then sell; if prev candle was green && 2x skyblue or blue then buy)
1 and 2 in show as indicator so we can monitor behavior on chart; step 3 code in an ea, with possibility to optimization of the lot, divider, SL, TP,
Lots: 0.01 //if 0 use risk calculation
Risk: 2% //if 0 use manual lots size
Base: balance //option: balance, equity, free margin
Take Profit: 15 pips
Stop Loss: 10 pips
Trailing Stop: 20 //works in similar way to MT4 terminal default stop loss
=====
FILTER
=====
Max open: 3 //maximum allowed open position
Max Spread: 10
Max Slippage: 3
Start hour: 7 //server time
End hour: 22 //server time
=====
Entry
- Buy if current open candle below MA(x) low
- Sell if current open candle above MA(x) high
Exit
based on take profit, stop loss or trailing stop (no special exit function)
1/ take the value 35278 ( highes vol in aliev_fx_volume)
2/ draw in the aliev_x_volume chart a Horizontal line through 35278/divider
3/ when there are 2 bars of same color (skyblue, maroon, blue or red) appearing above the hori volume line, give signal & @ which position, so that we can trigger at next open order designated to that color( if prev price && 2x red or maroon then sell; if prev candle was green && 2x skyblue or blue then buy)
1 and 2 in show as indicator so we can monitor behavior on chart; step 3 code in an ea, with possibility to optimization of the lot, divider, SL, TP,
Lots: 0.01 //if 0 use risk calculation
Risk: 2% //if 0 use manual lots size
Base: balance //option: balance, equity, free margin
Take Profit: 15 pips
Stop Loss: 10 pips
Trailing Stop: 20 //works in similar way to MT4 terminal default stop loss
=====
FILTER
=====
Max open: 3 //maximum allowed open position
Max Spread: 10
Max Slippage: 3
Start hour: 7 //server time
End hour: 22 //server time
=====
Entry
- Buy if current open candle below MA(x) low
- Sell if current open candle above MA(x) high
Exit
based on take profit, stop loss or trailing stop (no special exit function)
Attached File(s)