Forum

Indicator needs continious refreshing

This old indicator works fine the moment it is attached to chart (works fine for historical data). but it needs continuous chart refresh to work correctly ( works incorrectly for new data). help appreciated

Is it possible to convert MQL4 or EX4 to EXE ?

Hi every one I hope you are doing well and living a happy life I have a question : I programmed a MQL4 script to aid me in my job. It processes a .txt data file and get final report and some simple statistics. the problem is that I want to let other employees use it without being forced to set up

how can an indicator line pass from a candle high to its low ?

I am making an indicator to identify tops and bottoms of price movement and connect them just like the zigzag indicator actually there are three buffers: tops[] , bottoms[],and zigzag[] which is the combination of tops and bottoms my problem is that sometimes the same candle qualifies to be have a

how to optimize non-extern stoploss in ex4 expet advisor ?

I found a free ex4 expert that is shared on the web many years ago it looks promising it uses a fixed big stoploss (over 100 pips) I would like to optimize this stoploss but the problem is that it is not an extern variable so it doesn't appear in the expert inputs when attaching the expert to a

maximum buy or sell orders per bar

I am trying to limit the number of same type orders .for example if buy order is closed don't open another one in same bar .unfortunately the next code doesn't work extern int max_same_order= 1 ; void OnTick () int closed_buys= 0 ,closed_sells= 0 ; for (i= OrdersTotal ()- 1 ;i>= 0 ;i--)

show bar shift

//+------------------------------------------------------------------+ //| | //| |

Print historical charts

I read about the WindowScreenShot but I can't guess how to use it to print the historical charts .Say I want to use 15 min time frame and print the last 20 days charts .Every day to a .gif file .Any help