Forum

Calculation of Stop Level when Broker has floating Stop Level?

Hi, my broker Blueberry Markets has floating StopLevel, so I can't check it. If I check: StopLevel = SymbolInfoInteger(_Symbol, SYMBOL_TRADE_STOPS_LEVEL) * _Point; the result of this function is every time = 0. In my indicator I calculate: input int iSLPoints

How to best check performance of EA or Indicator?

Hi, how would you recommend to test an expert advisor? Either bought or self-written indicator. I think in such as SL=100, TP=100, maybe Trail=? -> so Trade Win Rate should result greater than 50% and give profit (excluded spread, slip, commission). I use often M5, sometimes M1, seldom M15, but so

OnTimer in iCustom called from Expert - How is the function?

Hello world, I'm using OnTimer in an self written indicator. It should display the time in seconds till new bar (Comment). If I load the indicator all works like I planned. But if it is called by an expert, the counter stucks. I guess, that in this case OnTimer is not used. Do you have other

OnTimer - How is the functionality of OnTimer, when in a custom indicator, which is called from an EA?

Hello world, I'm using OnTimer in an self written indicator. It should display the time in seconds till new bar (Comment). If I load the indicator all works like I planned. But if it is called by an expert, the counter stucks. I guess, that in this case OnTimer is not used. Do you have other

strategy tester extreme long duration

Hi, I use a 40 core xeon cpu and 80GB mem, 3 SSD RAID striping set for cache and 48TB HDD, 2x10gBit network. A test cycle in strategy tester with a single pass is 9 minutes. if I want to find optimized values I choose so, that it is a multiple of 40. So it does 40,80 or 200 cycles. I believed, that

MQL5 preprocessor - is this possible?

Hello World, I want to do some kind of #define dMACDMain 0 . . . #property indicator_label__dMACDMain+1__ "MACD Main (0)" . . . SetIndexBuffer(dMACDMain, MACDMain, INDICATOR_DATA); to get rid of silly errors, where these numbers get confused... So preprocessor should use dMACDMain, add 1 and