I fixed this, I just needed to take out the trailing stop and trailing step as constants and then the EX4 generated.
Latest posts made by robinsmithesq
-
RE: Compilation Errors when exporting to ex4 fileposted in Questions & Answers
-
Compilation Errors when exporting to ex4 fileposted in Questions & Answers
Hello
I'm trying to create a simple EA to assist with a semi automated trading strategy.For the EA, I set buys or sells only in MT4.
If its I set MT4 to buys only when the lower price band is crossed a buy is placed
If MT4 is set for sells only then when the upper price band is crossed a sell is placed.I will manually set input the upper and lower price bands manually as constants.
There are also constants for TP, SL, Trailing step and Trailing stop which I have used in the various blocks. When I try to export it to an EX4 file I get the below compiling errors
Please could someone help me workout what is causing the errors?
When I try t

Thanks!
-
RE: Trying to make EA detect if range between 8am and 9am in the morning is above the open and close range of the previous day but not workingposted in Questions & Answers
Not quite, I'll use the FTSE 100 as an example. If the daily range of the day before was between 6950 and 7000, then the EA would check whether the range between 8am to 9am the following day range was above this price level, so if the range was 7010 and 7030 between 8am and 9am, the EA would then look for a large bull candle above 10 pips breaking out of the 8am and 9am range and place a buy trade at the bull candles close price.
-
Trying to make EA detect if range between 8am and 9am in the morning is above the open and close range of the previous day but not workingposted in Questions & Answers
Hi
I'm trying to do an EA which defines the range between 8am and 9am at market open for an index, then checks whether the range is above the open and close range from the previous day.
If it is and then there is a bull candle which is more than 10 pips which finishes above the range between 8am and 9am I am then trying to open a buy trade.
I'm not sure that the conditions I have placed will do the job in detecting the ranges as I've said that the low and high of the range in that timeframe need to be above high of the range from the previous day.
I'm also having difficulty making sure that the candle close is used on the bull candle which is more than 10 ticks.
If someone could cast there eye over it that would be great.
Here is the project