Put the spread into a comment block and see what it outputs
Posts made by roar
-
RE: spread formatposted in Questions & Answers
-
RE: What type of EAposted in General Discussions
My advice: dont try to find the perfect entry, or the perfect optimization parameters.
When I build an EA, I try to model the whole market so that the EA always has some opinion of the market state, just the confidence (and position target) is variable. This way you get the flexibility.
If you try to optimize single-indicator EA to buy/sell at fixed SL&TP a couple times every year, the metatrader optimization will pick up some favorable statistical noise for you. Useless. Always remember to test the strategy outside the optimization period, and try to get a good amount of trades because that provides some statistical certainty.
Here's an example of my thinking, in case someone wants to take a look. I'm not going to explain the whole system because frankly I can't remember lol. You will need netting-method mt5 though.
https://fxdreema.com/shared/iVW1zwFVc -
RE: EA/indicator requestposted in Questions & Answers
@donjon122 My link does exactly that. If you are not happy with it, please tell what is wrong, I can't really guess anymore
-
RE: HELLO why the stop loss equity % is not separate in thisposted in Questions & Answers
@ramisignals
Condition:
Equity < Balance * 0.90(Put the *0.90 into adjust)
-
RE: ATR SL modificationposted in Questions & Answers
@marco-3 Hi!
This should be close...
https://fxdreema.com/shared/12KhB4M3d -
RE: problem with my EA when closing and reopening MT4posted in Questions & Answers
Try setting the "filter by group" setting to "all"
-
RE: Coronavirus (COVID-19)posted in General Discussions
Any website only needs a server to stay up. Servers dont get corona.
-
RE: Day of month filterposted in Questions & Answers
@l-andorrĂ there's a weekday filter, as he said
-
RE: EA/indicator requestposted in Questions & Answers
This should be pretty close to what you need... let me know what you think
https://fxdreema.com/shared/M6sXG0YN

-
RE: EA/indicator requestposted in Questions & Answers
@donjon122 If you only watch previous day extremes, using fractals doesn't give much more information as the high/low spikes usually have a fractal on them.
-
RE: WHY AM I GETTING NEGATIVESposted in Bug Reports
@veetee Still dont understand. You want to skip all losing trades and only get the winners? Let me know that secret formula lol
I can only suggest that you test different simple setups to narrow down your problem. I see that you use some kind of options broker, your contract might cause these issues as well
-
RE: Candle closeposted in Questions & Answers
@noelito1981 So now you use crossing condition and "no trade" filter? How is it possible to open multiple trades?
-
RE: Are the conditions and logic here correct?posted in Questions & Answers
"Applied price" does not mean any price value, dont use it like that.
Applied price refers to different parts of the candle: open, high, low, close, as you can see from the drop-down.
-
RE: WHY AM I GETTING NEGATIVESposted in Bug Reports
@veetee Didn't understand anything from the text, try to avoid capital letters.
Go to your journal tab to see the reason for closing those trades.
-
RE: EA/indicator requestposted in Questions & Answers
@alphaomega No, I don't use custom indicators at all. If I need some functionality, I make it directly to the EA...
-
RE: Can I create a break in the EA following TP ??posted in Questions & Answers
@dre Hi!
Just use "crosses above" instead of simply "is above" in your MA condition.
-
RE: EA/indicator requestposted in Questions & Answers
@donjon122 The fractal approach here is actually pretty difficult.
- The 2 prices are never exactly the same, so how much wiggle-room will you allow?
- How far back in time do you look? 100 years?
- Which pair of fractals do you compare? All of them? There's a zillion possible combinations
-
RE: Day of month filterposted in Questions & Answers
@roar oh, now that I think of it, this may be easier done with that once per bar trick
-
RE: Day of month filterposted in Questions & Answers
@nmbruno mql4 documentation is often helpful

https://docs.mql4.com/dateandtime/monthPut Month() into a variable once a week (once a bar, period 1W) and when Month() is != than that variable, new month must have been started