how would i be able to add into an EA that it will buy when the arrow is given? or do a sell when sellarrow is given?
- When you post code please use the CODE button (Alt-S)!
(For large amounts of code, attach it.) You should have edited your original post, not reposted.
General rules and best pratices of the Forum. - General - MQL5 programming forum
Messages Editor - You haven't stated a problem, you stated a want.
Show us your attempt
(using CODE button) and state
the nature of your problem.
No free help
urgent help. - Use the debugger or print out your variables, including _LastError and find out why.

- docs.mql4.com
Hello Whroeder1,
There is no problems or errors in above uploaded code but its place trade after giving signals or arrow by indicator and completing the current candle, means on starting of next candle it place the trade based on suggestion given by indicator. Actually, I want to place order of buy or sell immediately when indicator gives me signals, not after completing current candle.
Please suggest me what changes I have to made to getting this functionality in my expert adviser.
Hello Whroeder1,
There is no problems or errors in above uploaded code but its place trade after giving signals or arrow by indicator and completing the current candle, means on starting of next candle it place the trade based on suggestion given by indicator. Actually, I want to place order of buy or sell immediately when indicator gives me signals, not after completing current candle.
Please suggest me what changes I have to made to getting this functionality in my expert adviser.

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
i just like it to open 1 order when an arrow is given immediately. not every tick or every new bar. just 1 trade.
I have used icustom() function to merge indicator and expert advisor. and its work fine. but when indicator will give any arrow , then immediately i want to place trade.
For that I coded few lines which are given below.