Convert MQL Indicators to cTrader

MQL Indicators provide d so that they are extremely simple to convert to c# generally. Nevertheless something that is complicated may be the variety indexing. The reason being within MQL4 a wide range could be whether regular variety or even a good ‘indicator buffer’ plus they are each announced like a regular variety.


Click Here to Download A NEW Trading Tool and Strategy For FREE

For example for those who have this particular:

dual array0[];
dual array1[];

int init() (
indicatorBuffers(1);
SetIndexBuffer(0, array1);
)
mql4
After that array0 is really a regular variety, for example ahead listed, array0[0] may be the earliest worth

Nevertheless simply because array1 is placed like a barrier mt4 works a few at the rear of the actual moments modifications to allow it to be act such as NT dataSeries, for example change listed, array1[0] is actually the newest worth. One more thing you’ll frequently observe within mt4 indicators is actually BarsCounted, that’s only a counter-top with regard to the number of pubs the actual indicator offers prepared so it’s equal to CurrentBar within NT.

Others Looked For

  • metatrader in convert ctrader