ok, i think thats a bit too advanced for me at the moment. Havent really worked with boolean so far.
I wrote to you about your course on your website. Dont know if the mail came through?
Cheers
ok, i think thats a bit too advanced for me at the moment. Havent really worked with boolean so far.
I wrote to you about your course on your website. Dont know if the mail came through?
Cheers
Thanks, appreciate it. I tried making an image to explain. Dont know if that is clear? Read through 1-4 to follow the logic.

How can i set a max and/or minimum value in pips for stop loss or take profit. For example i set the stop loss for a sell trade above the high of last 5 candles. At entry the swing high is 50 pips away, but i want to set stop loss at least 60 pips away. Or swing high is 50 pips away but i want to set a stop loss at max 40 pips away.
The max and minimum values would override the condition that sets the stop loss placement..
same goes for take profits.
Thankjs
Hi, im trying to make a rule that says max X trades per trend. A trend is defined by 2 ema's. For example, once the fast ema crosses below the slow ema a new down trend is started. I want to only allow X amount of trades per each trend. Once X trades has been taken the ea will wait for another ema cross/new trend before opening any new trades. Is this possible? Cheers
If you right click in the "optimisation results" there is an option to "skip useless results". Its activated as default. Have you tried to de-activate it?
Hi, im trying to make an EA that uses multiple different entry and exit strategies. So like a portfolio of several strategies combined in one ea.
For example:
strategy one buys when rsi goes above 50 and closes when rsi hits 70.
Strategy 2 buys when macd signal crosses above main line and closes when main line crosses below signal line.
How can i create an order id for each strategy, so that the close condition of strategy 1 does not close trades opened by strategy 2 and vice verca.
Thanks
You can use the "once per day" block.
Hi, can anyone explain me why the buy/sell block equals the value of 1000 to 1% in the risk percentage of balance/equity?
I would like to make a constant that can be changed from the front end by the user where risk % is based on simply 1=1% 2=2% etc. I do not find it very user friendly too use the build in way..
If anyone has a work around i would very much appreciate it.
Cheers
Hi, im trying to figure out how to use the "weekday filter" block with true/false statements in a way that the mt4 backtester can run optimisations. So the backtest optimiser automatically runs through each day of the week with either true or false statements during the optimisation. Hope my question is clear.
I dont have any issues downloading .mq4...
Hi, im trying to add a martingale recovery system to an ea.
I want to add x % of initial position size after a loosing trade on all following orders until the balance is more or equal to the balance before the loosing trade.
I want the ea to only open orders based on the entry conditions, so no grids or opening orders at random places.
The initial lot size is based on percentage of balance/equity, so i cant use the inbuilt martingale function in the "buy/sell now" block
(the idea is to implement this recovery mode on a high win-rate system, but with much larger stops than take-profits)
For example:
We set the order size multiplier to 100%
Order 1 opens with 1 standard lot size. The trade hits stop loss at 100 pips from opening price and the account goes down by 1%.
Order 2 opens with 2 standard lots (+ 100% of initial position size) - the trade hits tp at 10 pips from entry price. The account balance is now down by 0.8%
All following orders will open with 2 standard lots (+100% of initial lot size) until balance is recovered .
If the ea hits a loosing trade while the lot size was already increased due to a loosing trade, the same rules will apply. If we take the example above. If the ea was in recovery mode and was placing orders with 2 standard lots and hits another stop loss for an order, then the next orders will open with the multiplier (100%) until the balance is break-even or above..
I know its probably a lot to ask for. Dont know if there is an easy way to build this..
Thanks
Hi, i am trying to make a really simple entry method based on outside bars. These are the entry rules:
Condition 1: outsidebar definded
high [0] > high [1] && low [0] < low [1]
Condition 2: Close of current bar is less than previous close
close [0] < low [1] -> buy next bar open at market price
And here is a picture of my condition blocks. Can anyone spot why this is not working. When i backtest the ea there are no positions opened.. 
Hi, i am trying to make a ATR based stop loss. I found an old post on the forum that explained how to set it up. However, i would like to make the multiplier value as a constant so i can backtest different values for optimisation.. In the image you can see that i have set *2 as default multiplier. If i save *2 as a constant i get en error message when compiling.. 
Hmm, cant really get it to work. I tried to set the settings of the "close trades" block, to 240 minutes, so the ea should close the position after 4 hours, but it does not work wither.. 
Im trying to make an ea that open order at a specific time (if certain conditions are met) and also closes open orders at a specific time. For some reason i cant make the ea close open orders at the set time. I found an old thread on this forum where it was advised to use the "once per day" block and set the time to close the order in that block - followed by "close trades". For some reason however, the ea does not close open orders at the specified time Any ideas? https://fxdreema.com/shared/LVZ8LEoyd
found the answer in the formula block..