Forum

OBJPROP_LEVELWIDTH vs OBJPROP_WIDTH

what is the different between OBJPROP_LEVELWIDTH and OBJPROP_WIDTH

what is period and shift mean in iMA

so, I place the MA on the 1H. I put 8 for period and 2 for shift. what exactly does it do

how to draw trendline using coordinate on the chart?

I knew how to create object trendline,vertical or horizontal line using price and time, but how can I do it using coordinates? I want to draw trendline using 2 coordinate. thank you

40/100 = 0 why?

I just test this one Comment(" 40%= ", 40/100); it show me 0, why

fail to open order

Ok. Here is problem. Just got home and see this stranger fail on my EA which make me didn't take 30 pips profit. My EA return the order fail to open because of 130 error. yes, I know 130 error is invalid stoploss. I'm not sure why it is invalid. I set a buy order and the stoploss is lower than open

external static variable

The situation is, on the initial run, I set that number on the input. After EA run, it meet certain criteria, it will reset that variable to be 0, and keep it 0 until I change the input variable again to be something else. Is there anyway to do that

limit order and the number of open order

so, if I have a max 2 order. I open 1 order, and like 5 pending limit order. How can I make sure that there is only 2 open order at a time? What is the code of EA look like to stop those extra pending order to be executed

coding over weekend

I have time over weekend, so I would like to do some coding. But the market is offline. and there is no tick, so the start() is not running. How can I write code and test it on the current available data when it is not getting any new tick? I just want to draw something on the current chart. Thank

execution time vs tick time

so, for every tick data, the start() function will activate again. What if the start() function have not finished running and the new tick coming? Will the start() function keep running until the return() reach and run the new tick after it? Or the start() function stop and run the new tick

managing limit order buy or sell

Here is the situation. I have placed many limit orders (limit sell and limit buy). When I am not in front of my computer. The price may go in opposite direction as I predict. And it go pass certain point of price. I want my limit order to be closed, even it is not trigger yet. Can this be done in