- Search Energy EXCH
-
RaptorUK replied Feb 26, 2013Modify these lines . . . if (AudioAlert && IsTimeToTrade() ) PlaySound("alert.wav"); if (PopUpAlert && IsTimeToTrade() ) Alert (Symbol()+" - "+sDirection+" from "+sLine+" on "+ Period()+" min Chart "); //+TimeToStr(Time[0],TIME_MINUTES) if ...
Alert only between specified hours
-
RaptorUK replied Feb 26, 2013Doesn't this explain it all ? string strPrice = StringSubstr(subText,0,posComa) ; string DoubleToStrPrice = DoubleToStr( NormalizeDouble( strPrice, 5) ,4); Why are you calling NormalizeDouble() with a string ?
I will code your EAs and Indicators for no charge
-
RaptorUK replied Feb 25, 2013I think you are getting mixed up, a string may have trailing zeros like 1.52300000 a double will be 1.532 Why don't you simply read your file as a CSV file ?
I will code your EAs and Indicators for no charge
-
RaptorUK replied Feb 25, 2013Mac sales have grown but if they have grown by 10 fold from 0.01% of the market to 0.1% that is not a good reason for Metaquotes to code a native Mac version of their old platform, you would have more chance of getting a Mac version of MT5, or even ...
Will Metaquotes ever develop MT4 for MAC?
-
RaptorUK replied Feb 23, 2013That is what your code already does . . . but you said "The stop loss will move but the original take profit isn't being set. It modifies just the stop loss on the order and not the take profit. " suggesting that you wanted to modify the SL and TP.
Move Stop Loss To Break Even EA
-
RaptorUK replied Feb 23, 2013You aren't trying to change the TP, OrderTakeProfit() is the current TP and that is what you are setting when you move the SL to OrderOpenPrice(), by the way, why aren't you checking the return value of the OrderModify() to see if it has worked or ...
Move Stop Loss To Break Even EA
-
RaptorUK replied Feb 22, 2013Yes. There is a Book and the Documentation. And examples in the CodeBase, be warned though some/many are of dubious quality.
New to EA development/question
-
RaptorUK replied Feb 22, 2013Stop Loss is 100 pips not 10
I will code your EAs and Indicators for no charge
-
RaptorUK replied Feb 22, 2013Indeed, that is a very important distinction to realise, I only found out today. I had assumed that Print, Alert and Comment truncated to 4 digit precision but it seems they actually round to 4 digits.

I will code your EAs and Indicators for no charge
-
RaptorUK replied Feb 22, 2013Take a look at this provided by Metaquotes: http://forum.mql4.com/54147
How to make 2 MT4 EAs to communicate on different platforms
-
RaptorUK replied Feb 21, 2013Yes, I believe its a double precision issue, read this for more information: Can price != price ?
I will code your EAs and Indicators for no charge
-
RaptorUK replied Feb 21, 2013It's probably down to the precision of double variable types. Try this and let us know what the result is if(OrderType()==OP_SELL) risk+=((OrderStopLoss()-OrderOpenPrice())/point)*(( OrderLots()/Lots ) + (point / 10)); Print(risk," ...
I will code your EAs and Indicators for no charge
-
RaptorUK replied Feb 21, 2013I guess risk is an int ? and OrderLots()/Lots is returning a value less than 1, this can happen with doubles.
I will code your EAs and Indicators for no charge
-
RaptorUK replied Feb 21, 2013It's not the only way. You could use a Mutex, so when any Indicator you have running wants to set an audible Alert it first checks to see if it can get the Mutex token, if it can it then checks the number held in the token and this gives it the time ...
New Renko Bar and Reversal Renko Bar Indicator Alert Help Please
-
RaptorUK replied Feb 20, 2013You have these errors in the Strategy Tester because your data is bad, you data for M1, M5, M15,etc has to match each other.
I will code your EAs and Indicators for no charge
-
RaptorUK replied Feb 20, 2013Your code needs to comply with what is written here: Requirements and Limitations in Making Trades
Fixing Error 130 - MT4
-
RaptorUK replied Feb 20, 2013Upticks + Downticks != Volume a tick can also be a movement of the Ask price.
Upticks and Downticks indicator
-
RaptorUK replied Jan 26, 2013Looks reasonable quick to do, the only thing I would pause to think about is the ADR calculation, I've never done it before but I guess you would want to exclude a Sunday D1 bar ?
I will code your EAs and Indicators for no charge
-
RaptorUK replied Jan 25, 2013Send ticks at regular intervals to your Offline chart, if you want to be very accurate send ticks to your offline chart from the online chart of the same symbol, assuming your offline chart s based on a single symbol, so that the tick you send to ...
how to program EA to run on offline chart
-
RaptorUK replied Jan 25, 2013Tick count, not every tick is a change in Bid price, some (I have seen as many as 30%) are changes in Ask price (Spread), others may be changes in other Market information.
Coding Volume Divergence Indicator in MT4