You will get a caustic reply from WHRoeder.
There is no point in us offering advise as you had to use an EA builder to write the code. Unless you have a minimal knowledge of coding you will not understand.
Most of us in this sub-forum will not help out when a person asks for help with code produced by an EA builder.
We help people who put in the effort to produce code themselves.
-
Play videoPlease edit your post.
For large amounts of code, attach it - // THIS EA CODE HAS BEEN GENERATED USING FOREXEADVISOR STRATEGY BUILDER 0.2
- We hate EA builder
- You couldn't be bothered to learn mql4, therefor there is no common language for us to communicate.
- There are only two choices: learn to code it, or pay someone. We're not going to code it FOR you. We are willing to HELP you when you post your attempt (using SRC) and the nature of your problem, but we are not going to debug your hundreds lines of code.
- EA builder makes bad code counting up while closing multiple orders.
- EA builder makes bad code Bars is unreliable (max bars on chart) volume is unreliable (miss ticks) Always use time. New candle - MQL4 forum
- EA builder makes bad code Not adjusting for 4/5 digit brokers, TP/SL
and slippage:double pip = StringFind(_Symbol,"JPY") < 0 ? 0.01 : 0.0001;
int slippage = 3 * int(pip / _Point); - EA builder makes bad code not adjusting for ECN brokers.
- EA builder
makes bad code not checking return
codes.
- EATree uses objects on chart to save values - not persistent storage (files or GV+Flush.) No recovery (crash/reboot.)
- Pizzo1976: I don't know how to write a series of event (i.e. first wait for the RSI to be over 80 and then wait the MACD to cross. Only then enter a sell)
- If the RSI of bar 1 isn't over 80 return from start (wait for a new tick.)
- If the MACD of bar 1 is below zero and MACD of bar 2 is above zero, it has crossed.
- OrderSelect(i,SELECT_BY_POS ,MODE_TRADES);
if (OrderMagicNumber()==MagicNumber) result++;- Not checking return codes
- Not compatable with itself on other charts and/or other timeframes. Symbol Doesn't equal
Ordersymbol when another currency is added to another seperate chart . - MQL4
forum
-
Please edit your post.
For large amounts of code, attach it - // THIS EA CODE HAS BEEN GENERATED USING FOREXEADVISOR STRATEGY BUILDER 0.2
- If the RSI of bar 1 isn't over 80 return from start (wait for a new tick.)
- If the MACD of bar 1 is below zero and MACD of bar 2 is above zero, it has crossed.
- OrderSelect(i,SELECT_BY_POS ,MODE_TRADES);
if (OrderMagicNumber()==MagicNumber) result++;- Not checking return codes
- Not compatable with itself on other charts and/or other timeframes. Symbol Doesn't equal
Ordersymbol when another currency is added to another seperate chart . - MQL4
forum
thank you both, I understand your comments
regards
1) I don't know how to write a series of event (i.e. first wait for the RSI to be over 80 and then wait the MACD to cross. Only then enter a sell)
2) I don't know hot to specify the cross below 0 ( I can only state below 0)
You actually have 3 requirements:
Requirement 1: RSI is > 80 and
Requirement 2: MACD is < 0 and
Requirement 3: MACD was > 0 (or maybe >= 0... your preference)
You have most of the ingredients here already:
You're only missing Requirement 3. Here are a couple of hints:
&& means AND (useful to know if you want to add another requirement)
Bars are numbered (indexed), starting at 0 for the current bar. So the previous bar is index 1. You set the index of the bar with the last parameter:
Give it a go, you may be surprised what you can fix yourself!
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hello,
I would like to build an EA that enter a sell position when the RSI is over 80 and then the MACD Instagram crosses below O.
I have trouble to do 2 things ( I am not an expert at all!):
1) I don't know how to write a series of event (i.e. first wait for the RSI to be over 80 and then wait the MACD to cross. Only then enter a sell)
2) I don't know hot to specify the cross below 0 ( I can only state below 0)
See below.
If you can help would be great!
Thank you!