Forum

MT5 EA: Incorrect POSITION_TYPE retrieved

Hi, Using an EA , I'm opening a SELL position and then retrieve the order type. But strange enough when I read the POSITION_TYPE it says it's a BUY position !!!! What's wrong ? #include <Trade/Trade.mqh> CTrade myTrade; //my trade object //--- int OnInit () { double v_Bid =

Custom development: MQL5 Version control ?

Hi traders, Quick question, how is version control handled in MQL5 ? I've been coding several Indicator and EAs, and always name my files based on the version itself, eg my_MACD_v1 , my_MACD_v5 etc. But if I save them as my_MACD and only change the #property version the executables ovewrite each

MT5: iBandsOnArray ?

Hi all, in MT5 what's the corresponding function for iBandsOnArray ? In MT4 we could calculate the iBands on any given Array, how can I achieve the same result in MT5 ? Help is appreciated, thanks. JF

How to copy trades from MT4 to NT8 ?

Hi everyone, Not sure if this question has been addressed before, but here it goes: I have several EAs in mql4 executing trades and need to replicate these trades in Ninja Trader 8. Is there a way to do it ? Can anyone share a sample code ? Thanks in advance, help is appreciated. JF

MT4: "No connection" the whole today !!

Hi, is anyone facing this problem today (October 15 , 2019): MT4 has "no connection" the whole day !!! Tried reinstalling it, changed Broker accounts and no luck. The problem remains. Help needed please. Thanks

Business Models to monetize a profitable EA ?

Hi, I've always been thinking: "If I ever had a profitable EA how could I monetize it at a large scale" ? What are the business models to make money from a profitable EA ? Of course, Number ONE requirement is to have a profitable EA, with a proven record of successful trades, for an extended time

How to determine the first H4 bar of the day ?

Hi all, how can I determine the first H4 bar of the day ? I'm trading on H4 timeframe and need to analyze some indicators at the first H4 bar of the day. Help is appreciated. JoDax

Dow or Nasdaq: who leads ?

Hi all, I've just started trading the Dow Jones 30, and it has a good average daily range, and is great for scalping. Looking at the Nasdaq 100, both move almost in synch, and in the same direction. For those experienced in these instruments, which one do you think is the leading Index ? Dow or

Volume weighted awesome oscillator for MT4 ?

Hi, I've been doing some research and there's a "Volume weighted Awesome Oscillator ", which uses volume weighted moving average instead of SMA. Does anyone have the version for MT4 ? Help is appreciated. Regards Jo

Money Flow Index: max and min values ?

Hi all, I'm trying to create a function that on every Bar, determines the Maximum and Minimum values of the MFI. But it's not working. Can someone give me some hints ? Appreciated. //---Function Max and Min values int MFI_Period = 14; double Max = 0; double Min = 999999; //emulate infinite double