Your "y" variable doesn't change at any point.
Also, alone blocks will not work, there must always be a connection.
Posts made by roar
-
RE: my orders can not pick the variables from the formulasposted in Questions & Answers
-
RE: How to open next order after 5 bars if there is already open order and conditions are met, so there won't be a lot of open trades???posted in Questions & Answers
- Make variable barcount
- On every bar, barcount = barcount+1
- Condition before order: barcount > 5
- After order: set barcount = 0
-
RE: 3x MA - Odd Crossing Toleranceposted in Questions & Answers
So you want multiple moving average crosses before trade? By default, you can only work with a one "slice" of time, be that the bar open, one tick, etc... The thing is, these multiple crosses rarely appear together on that exact moment. So you need a system to "remember" those older crosses, or alternatively, a loop that can go through multiple candles to find the older crosses. Variables will become handy anyway.
-
RE: EA from Examplesposted in Questions & Answers
@josecortesllobat said in EA from Examples:
- connect the block #7 to the yellow output of block #3
I am not using the yellow output of a cross over condition.
@josecortesllobat Hi!
I think block #3 is a cross-block. But yeah, its best to make separate flows for buy and sell in this case. -
RE: EA from Examplesposted in Questions & Answers
@josecortesllobat Does the ELSE of "cross above" really mean "cross below" ?
Isn't it just "not cross above"? -
RE: cross over in stochasticposted in Questions & Answers
Ok, the logic is fine now. Maybe its the indicator - try some simple moving average instead of custom indi, does that work?
-
RE: cross over in stochasticposted in Questions & Answers
Which candle ID are you using?
Why dont connect block 5 to block 1? -
RE: cross over in stochasticposted in Questions & Answers
I think crossings on current candle is not very smart.
Try Candle ID 1 in all conditions, does it help? -
RE: Standard deviation channelposted in Questions & Answers
@Moofty Oh hello
Didn't get that notification, just accidentally found this thread.I am working with these channels too - and its a pain. I decided to abandon the "regression channel" and "standard deviation channel" objects entirely, as you cant get those upper and lower values without some serious custom code.
Instead I calculate all those lines manually, with some loops and formulas.
I can make a tutorial if youre still interested in these. -
RE: My trash binposted in Bug Reports
Monster keeps on growing...
I got frustrated on working with the standard regression object, so made the regression calculations manually. I should make a guided tutorial on that...It draws decent regression channels now, next step is to utilize them better for trading. Now it just uses Stochastics cross, condition being the price is near regression line (and regression is accurate).
0_1524930347211_LINEAR3.4.mq5
13000 lines of code - my laptop processor hates me. -
RE: Compilation error ..posted in Questions & Answers
I am not much of a MQL coder, but I think this is going on here:

The comma after "iCustomName" means that there should be a fourth parameter to the function. Instead of the fourth parameter, the function ends with ")". That's why its saying "parameter missed".Try removing that useless comma after iCustomName.
The warnings (yellow icon) dont mean anything really, I got 30 of them every time and my bot runs perfectly.
-
RE: 3x MA - Odd Crossing Toleranceposted in Questions & Answers
Your EA runs every tick, and moving averages also update every tick. That causes problems when the moving averages are somewhat flat.
Solution: put "once per bar" somewhere, probably best just before the buy/sell blocks.
I prefer to put the "once per bar" as the first block, and then use candle ID 1 in all conditions. That way you are always looking at the completed bar, and not the current, changing one. Of course that makes your bot a bit slower to react, but I think a winning strategy must be able to withstand that slowness anyway. Also boosts backtesting a lot.
-
RE: Compilation error ..posted in Questions & Answers
Try exporting to .mq4 (.mq5) and use the metaeditor to compile. It will give a more detailed error report, telling which block is the problem.
-
RE: Who can explain the "what to get?" option of custom indicators?posted in Questions & Answers
I think it refers to the different indicator "buffers".
You see, an indicator can have all kinds of information to offer,
for example, the default MACD indi can give you the main line value, and also the signal line value. -
RE: "..Problem collecting data.."posted in Questions & Answers
Okay, so the indicator itself is good..
I can't think of anything, hope the admin can
On second thought, isnt "indicator apperar" the same as condition: indicator != 0
-
RE: "..Problem collecting data.."posted in Questions & Answers
Interesting, this needs some further troubleshooting.
What if you put your indicator to a condition block? For example, condition : indicator == 0 ?
Does it compile ok? -
RE: "..Problem collecting data.."posted in Questions & Answers
You must upload the indicator to fxdreema.
Check your "My indicators" menu, is it there?
-
RE: GAPposted in Questions & Answers
formula:
- candle close (ID 1) - candle open (ID 0)
- remember to use daily timeframe in the formula
then condition: formula result > yourGap
-
RE: Is this ok?posted in Questions & Answers
They all execute on the same tick, no matter if there was 1000 horizontally connected blocks
