Hi all,
need a hand regarding the brokerCommand PLOT_HLINE. Im using MT4 bridge and want to plot 2 pricelevels on mt4 chart.
manual says:
PLOT_HLINE | var[5] | Place a horizontal line at a given price in the chart window of the broker platform. 5 parameters are used: P[0] = always 0; P[1] = price position; P[2] = line color; P[3] = line width; P[4] = line style. Return the identfier number of the line.
so related part of my script looks like following:
BreakEvenLongTrigger = TradePriceOpen + Range * 0.5;
LosingLongLevel = TradePriceOpen - Range * 0.4;
brokerCommand(PLOT_HLINE,0,BreakEvenLongTrigger,GREEN,1,1);
brokerCommand(PLOT_HLINE,0,LosingLongLevel,ORANGE,1,1);
those are placed within a tmf. if i try run with TRADE on mt4 demo account, zorro compiler gives following error:
brokerCommand(): wrong number of parameters
< brokerCommand(PLOT_HLINE,0,BreakEvenLongTrigger,GREEN,1,1);
>.
I could not find any further documentation or any examples on how the parameters have to be set. Any advice would be highly appreciated. (Zorro S 2.70)
rest of my script is running fine so far ...
Thanks in advance
M_D