Hello, I haven't used GameStudio A8 in a long time and already I have a problem. I created a small test example and assigned the pre-made script "t_player" to the model.
Well, script is running without errors. But dont get plots on mt4 chart. Can someone tell me how to return a brokercommand value (check if !=0)? on the mt4 terminal there are no related messages in Experts or Journal tab.
Zorro manual "MT4/5 Bridge" gives advise on how to get a return, i have read it ... but not really understood. And seems to me like explaination for "own generated broker commands". Not my case, already predefined. so how to proceed?
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:
Code
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 ...