Forum

Saturday Candles.

Why does mt4 put up the occasional Saturday Candle? Its not every Saturday either. How can this be eliminated? I have downloaded the latest historical data as well. Having that extra candle in there is got to be messing with indicators. Thoughts

Help with custom indicator

I need help with how to get the value for this custom indicator . I am looking to get the value for the dots on the bottom line. I am not sure how i would code it since it is either red or blue and not a numeric value that I can think of. Also not sure what mode it would be

MT4 ADX different from Oanda ADX

Does anyone know how to get the same ADX value on the MT4 platform as in the Oanda Desktop platform? It seems verry different with same parameters. The Mt4 version isn't working for me. I need to get a similar value as the Oanda desktop version. the only way I can think of doing that is by getting

pivot points

So I am trying to code pivot points. The idea I have is to check for a high/low of let's say the last 5 bars. Then what I would like to do is check to see if the previous 5 bar before that beat said high/low and continue checking that until the answer is false. I figure I would need a for loop but

Getting the value of User drawn trend line

I am trying to get the value of a trend line drawn by the user on the chart. Any ideas? I can't figure out a proper way to draw a trend line since there is so much personal intuition on what a pivot point would be considered. Is there a way to get the value of the trend line so I can use it to code

Closing partial positions

I have an ea set up to close half the open position when target is reached. The problem is once the target is reached it closes half of the new lot size as well until it cant anymore. Any ideas on how to get it to only close half the position once

Trade is disabled

I have recently designed an EA that I would like to start using in real time. I had it all set up and the got the Trade is disable message. Not really sure why. I use Oanda and have contacted them and they have said there is nothing they have to do to enable trades. Trades worked fine in the Tester

Trailing stop wont move

//Input Variable for StopLoss% input double StopLoss = 0.015 ; //Risk% input double RiskP = . 015 ; //Short Term MA Period input int ShortTermMovingAverage = 2 ; //Medium Term MA Period input int MediumTermMovingAverage = 10 ; //Long Term MA Perios input int LongTermMovingAverage = 20 ; //Configure