Forum

Attach a screenshot to an email alert ?

Hello, Just a quick question Is there a way to attach a screenshot to an email . Basically make the WindowScreenShot() function and the SendMail() function work together ? cheers, -J

Optimizing across several instruments

Hello, I was wondering if anybody knew of a way to optimize a strategy across several instruments in MT5. I know you can set the optimiser to Market Watch but it won't iterate through all the parameters to give you the best results across different instruments . Cheers

change Stop loss on a second order after first order takes profit

Hello there, I've got a simple question . I'm opening 2 order both with the same stop loss but with a different take profit each . After order 1 takes profit I would like to change the stop loss of order 2, how can I "pass" the message that order 1 has taken profit ? Thank you

Dreaded error 130 ...

Hello, I`m getting this nasty error 130, I've triple checked that I`m normalizing everything for my Stop loss , I really don`t see where it's coming from : 2011.01.30 14:45:57 2010.12.17 23:59 EA_v01 AUDUSD,H4: OrderSend error 130 double size; size = 0.01; entry = NormalizeDouble(High[1],Digits)+ (2

Ensure you're only trading once per bar

Hello, Sorry about the noob question, I've got an EA that seems to be trading more that it should (ie: more than once per bar) . What's the best way to ensure that you are only trading once per bar ? cheers

Connecting to a MySQL database

Hello, I'm trying to connect to a MySQL but something seems to be wrong, I can't figure out what .. This is the code I'm using, the connection result keeps on returning 0 (user and pass variables are modified here ), I can connect to the DB without problem by other means, anything particularly wrong

Black-Scholes model ?

Hello, Does anybody know if it is possible to compute the Black Scholes model of option pricing ( binary ) in Metatrader 5 , or any option pricing model for that matter ? cheers, -J

Counting bars

Hello, This is something I was wondering how to do in mql4, but I think while I`m there I may as well learn how to do it in mql5 . How would you guys approach this ? I want to count the number of bars that are above a moving average during a set period of time . Would it be a backtesting thing or

Simple counter question

Hello, Just had a quick MQL4 question. How would one approach bar counting in MQL4, I know of the "bars" variable and iBar() . I would like to able to print how many bars above 10 SMA there were last year, I get the result of the backtest would be that value . ( Would you actually run that in the

An other Turtle Trading question ( lot sizes )

Hello, I`m just writing my little turtle trading EA here, the entries and exits are pretty straightforwards. I guess the main thing in the Turtle trading is choose your lotsize carefuly . The Turdle trading docs, says : N is simply the 20-day exponential moving average of the True Range, which is