Forum

Premier Stochastic Oscillator (PSO)

Has anyone coded the Premier Stochastic Oscillator in MQL5? I read about it on Investopedia.com in the article Premier Stochastic Oscillator Explained , and I'd like to try it out. TIA...ChuckM

There are at least three different methods to retrieve the Spread for a Symbol...

...From the MQLTick Structure...example: SymbolInfoTick() ...From the CSymbol Trade Class...example: CSymbolInfo() ...From the Environment State Function...example: SymbolInfoInteger() Would someone please explain the advantages and disadvantages of using each technique? Is there a preferred

Automatic Optimization in MT5?

As frustrated as I have been teaching myself enough C++ to migrate my EA from MT4 to MT5, I really like the new platform...especially the Strategy Tester . Remote agents ROCK! But I have not been able to get the Automatic Optimization working. Can anyone tell me if this works in MT5? If so, could

Unable to update an array element?

I am trying to convert an indicator to an EA...all works well with one frustrating exception. One section of the routine sets an array element equal to a variable...eg: "myArray[myElement] = myVariable". myArray and myVariable are both defined as "double". This works perfectly fine in the indicator

Date arithmetic

I know I can determine the number of days between two dates by simply subtracting the dates...but how do I determine the date that is n-days from another date? TIA...Chuck

Strategy Tester - "no ticks generated"

Would someone please explain, or point me to an explanation of why the Strategy Tester needs to interact with my broker? My broker (MB Trading) frequently brings down their Demo system...why does this prevent me from testing?...I can't seem to test on the weekends either. If I've downloaded