You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
OrderSend returns the ticket number, not a boolean value.
Thanks for LOOKING
It Does say that right in the description
"Returns number of the ticket assigned to the order by the trade server or -1 if it fails."
I'm so Happy to get feedback...I've been staring at it so long, there's no way i'd see the issue.
THANK YOU!!
1 last thing..
I'm watching this and the orders opened like they should..
but when it came time to close both orders, only 1 Was closed.
Can you see any type of error in the ORDER close code above that would prevent it from closing ALL orders when called?
THANKS
need some help for add a command to my ea please
Hello,
Could you please let me know how is possible to add a command type "if(about_to_hit_TP_condition) PlaySound("alert.wav");" to my EA.
I want an alert on every TP.
Sorry but there is no TP events in the "Tools > Options > Events tab"of metatrader. Only TS.
What is the exact command and where should i add it please.
Thank you for your kindness,
Patrick.
This ea manage SL and TP auto_sl-tp_setter_v1.mq4
it's gunna be somethin like
if (MathAbs(Bid or Ask -OrderTakeProfit()) < 5 ) {PlaySound("alert.wav");}
you're gunna have to have code choosing which open trade ur are referring to.
you can use an external variable for '5' and input it on ea properties
use BID or ASK depending on sell or buy
1 last thing..
I'm watching this and the orders opened like they should..
but when it came time to close both orders, only 1 Was closed.
Can you see any type of error in the ORDER close code above that would prevent it from closing ALL orders when called?
THANKSMaybe it'd do well with a RefreshRates() between closings, since there is the few seconds wait between them.
Need some help please
Can anyone tell me where can I find robot that can close all open position on specific time. Example Close all open position on monday at 3 a.m.
Thank you very much
Help Adding Sound to EA
I have an EA that I am building but I want a version that will just alert me (by Sound) when there is a sell or buy signal instead of actually sending the order. The sound can continue to play until I turn it off. I want to be sure and hear it.
Can someone please help me with this. I am learning to program but at this time know very little. I will have to but a link to the ea because it still says I can't post attachments.
http://www.goplatinumnow.com/Forex/My
Thanks in advance to anyone that can do this or show me what to do.
Forest
TrailingStop
TrailingMoveOnProfit=true TrailingStop1 and TrailingStop2 just start moving when the pair is in profit
If TrailingStop2=0 then TrailingStop1 acts as a normal trailingstop.
If TrailingStop2 > 0 then TrailingStop1 works just till the pair be in profit, after that TrailingStop1 stops and TrailingStop2 start work as a normal trailingstop.
StopLosse is the points you want for initial stop.
ProfitTake is the points you want to take profit.
StopIn_ProfitValue/ StopIn_ProfitPoints
put the stop in profit (StopIn_ProfitPoints) when the pair reaches StopIn_ProfitValue
(ex: put stop with 10 points of profit when EURUSD reaches 1.2870)
Close_OnProfitPoints = close the positions when they have x points of profit
Close_OnLossesPoints = close the positions when they are losing x points
Close_Half_OnProfitPoints = close half of the positions when they have x points of profit
Close_AllBuys_AboveValue = close all buys when value is reached
Close_AllSells_BelowValue = close all sells when value is reached
Close_HalfBuys_AboveValue = close half buys when value is reached
Close_HalfSells_BelowValue = close half sells when value is reached
Close_OnMACrosse = close the positions when EMA5 crosses against on 5 minutes chart
BreakEven=true the EA put stop to break-even as soon as possible.
Hi,
Just replacing Sendorder with sound is not recommended - as it will mess up the next signal .. in the absence of profit/sl/close.
But you can do this ..
1) replace every 'Print' by ..
Alert("Message ..."); // to get a popup box alert
PlaySound("wait.wav"); // put your favorite song
2) Run it in demo .. and trade manually in live
cheers,
Blue