Attach the EA to a gold chart.
it's easy. Tks bro so much.
GumRai:
Attach the EA to a gold chart.
Attach the EA to a gold chart.
Alexmql4:
it's easy. Tks bro so much.
it's easy. Tks bro so much.
But it's seem not running. I can see EA on my terminal affter attach it. But i can't it do anything on my code (ex: Aleart ). Can you guide me.
Tks u.
-
Play videoPlease edit your post.
For large amounts of code, attach it.
TakeProfitLevel = Bid + TakeProfit*Point; //0.0001 StopLossLevel = Bid - StopLoss*Point;
Stops must be adjusted to TickSizeDo NOT use NormalizeDouble, EVER. For ANY Reason. It's a kludge, don't use it. It's use is always wrong- SL/TP (stops) need to be normalized to tick size (not Point.) (On 5Digit Broker Stops are only allowed to be placed on full pip values. How to find out in mql? - MQL4 forum) and abide by the limits Requirements and Limitations in Making Trades - Appendixes - MQL4 Tutorial and that requires understanding floating point equality Can price != price ? - MQL4 forum
- Open price for pending orders need to be adjusted. On Currencies, Point == TickSize, so you will get the same answer, but it won't work on Metals. So do it right: Trailing Bar Entry EA - MQL4 forum or Bid/Ask: (No Need) to use NormalizeDouble in OrderSend - MQL4 forum
- Lot size must also be adjusted to a multiple of LotStep. If that is not a power of 1/10 then NormalizeDouble is wrong. Do it right.

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
hi, this is my first program. I want to make a order on Gold symbol by using OrderSend() function on mt4.
I try but when i running on my test. It's always show me EURUSD symbol on my teminal not Gold symbol.
I hope there's someone show me how to i can make order with gold when i compile my demo code.
Tks so much.
//////////////////////
int start()
{
double TakeProfitLevel;
double StopLossLevel;
TakeProfitLevel = Bid + TakeProfit*Point; //0.0001
StopLossLevel = Bid - StopLoss*Point;
Alert("TakeProfitLevel = ", TakeProfitLevel);
Alert("StopLossLevel = ", StopLossLevel);
OrderSend(Symbol(), OP_BUY, 1.0, Ask, 10, StopLossLevel, TakeProfitLevel, "My 1st Order!");
return(0);
}
///////////////////