If you click the ? for the block it tells you why, it has something to do with backtest time not working the same as real-time
Best posts made by jstap
-
RE: Time Bomb and backtestingposted in Questions & Answers
-
RE: Pls help me, the remote destop window update so i want the ea run as the previous latest value wasposted in Questions & Answers
Above will likely work but should have a for each trade above. Personally, I would save and read to/from a global terminal variable.
-
RE: I want to add pips with spread and use it for pending order, i need helpposted in Questions & Answers
In what way? This will get the spread value: MarketInfo(Symbol(), MODE_SPREAD)
-
RE: what happens after the subscription period expires?posted in Questions & Answers
You cannot compile or export anything over 10 connections, but you can still create
-
RE: what happens after the subscription period expires?posted in Questions & Answers
Only less without a subscription
-
RE: Risk % of equity error and incorrect stop movementposted in Questions & Answers
This should only modify once, try starting it all from scratch in case there has been a glitch while creating.
As for equity % I do not know but % has always worked for me -
RE: Symmetrical triangleposted in Questions & Answers
In draw shape you can draw a triangle, and you can draw with trend lines. Try with this, test on backtest, then add a shared link here saying what you want it to do.
-
RE: calculations on variable and constantsposted in Questions & Answers
Not sure what you mean, a constant is fixed and changed in inputs, and a variable can be changed, including using a constant in many different ways. To see exactly add a shared link and say what you are trying to achieve.
-
RE: calculations on variable and constantsposted in Questions & Answers
I take it 5 of price is no good, If you are talking about value at risk set this in the money management box.

-
RE: Condition where price has a certain distance from EMAposted in Questions & Answers
candle < or> EMA adjusted to + or - x.xx pips
-
RE: Question about the bookposted in Questions & Answers
The book is mine, it explains everything about using FX, how to start basic projects up to advanced projects
-
RE: Distance from last open and only buy/sell above/below last open tradeposted in Questions & Answers
I don't mind helping, but chat GPT is better at explaining code than me, if I add code to my project I do it one section at a time. Everything you have here you don't need code for, and your last project nearly worked. When I started using FX I would create 1 thing, then backtest before adding another. Get 1 thing working, and if not ask why. As you did, so start by removing 1 of your sell blocks and see what happens.
-
RE: When MetaTrader is restarted, the EA opens new positions with 0.01 lotposted in Questions & Answers
If trade is running use that, if not save the values in a global variable: https://fxdreema.com/forum/topic/20550/save-variables-constants-if-terminal-closes-crashes
-
RE: Pls help me, the remote destop window update so i want the ea run as the previous latest value wasposted in Questions & Answers
Use global variables, if it is just a constant, condition constant != to global variable - set global variable to constant. Here is some workings with it: https://fxdreema.com/shared/7yZetp7Dd
-
RE: Source file and ex4 or ex5 not downloding to expert folder anymoreposted in Questions & Answers
In options you can set this:

-
RE: Link blocksposted in Questions & Answers
What do you mean? Generally, if something needs to happen first it should have a lower number (The tree should start with a lower number), the link will show the order.
-
RE: Calculate equity drawdown percentage and open opposite direction tradeposted in Questions & Answers
You have conflicting issues in 1 tree, equity will never = your drawdown result if no trades are running. to disable auto trading is good, but get this working before worrying about this