To do this you will need to set up manually, something like this, on trade tab - trade closed by (sl/tp whatever works for you) - conditions for placing a trade - for each closed trade/position buy/sell using the last trade lot from a loop adjusted to however you want the new lot to be.
Posts made by jstap
-
RE: Martingale for both buys and sells?posted in Questions & Answers
-
RE: HOPW TO OPEN ONLY ONE POSITION FOR EACH CROSS ?posted in Questions & Answers
Set up a test project you can watch visibly on backtest, use pass once blocks, switch on/off evert time a cross happens...
-
RE: Custome indicator ORDERBLOCKposted in Questions & Answers
You can manually add indicators as you have done, spellings and order need to be correct. But 1st ensure in your terminal data window, there are buffers showing that has data you can access and use.
-
RE: Slippageposted in Questions & Answers
Most forex pairs are converted with the project options, anything else will be points still, if you drag your cross hair over the terminal screen, you will get the points value to use.
-
RE: Unexpected Block Actionposted in Bug Reports
Once per bar on top means it will check the profit at the open of every candle on the current timeframe, put the once per bar below your check profit, and chance to daily (if you want this to happen once a day).
-
RE: how I can identify the candlestick with the highest volume during the dayposted in Questions & Answers
This should work, you will have to test though, not capable to test on MT5 at the minute: https://fxdreema.com/shared/BoKoBNlhc
-
RE: How to return a boolean value back from a Custom blockposted in Questions & Answers
Ok, this says no variable is being created (as long as this being after running EA), copy your code including variable name, past into chatgpt, tell it you are creating a block on FX, this is what you have and where you have it, and ask it to create code so you cand make the block work. it should give you the code to past in there
-
RE: How to return a boolean value back from a Custom blockposted in Questions & Answers
I mean your meta trader, if I press fn F3 I get this:

-
RE: How to return a boolean value back from a Custom blockposted in Questions & Answers
I mean your platform, press f3 and you should get a window listing all global variable, stop any EA creating ones to remove, delete all necessary. don't add any constant for now, just see what the block is doing.
-
RE: How to return a boolean value back from a Custom blockposted in Questions & Answers
I am trying to help, delete all current global variables, run the EA that you
created with the the studio block, and see if it has the variable. If not add code to add to it, manually to and from with fx is easy, but a created block won't chance the code to do it, you can use chat gpt to do that. -
RE: How to return a boolean value back from a Custom blockposted in Questions & Answers
Your block has created a global variable.

-
RE: How to return a boolean value back from a Custom blockposted in Questions & Answers
Tell me before you change global variables, do you have the name created from your block? Delete all relevant global variables, run the EA with your block, open global variables window and take a screenshot
-
RE: How to return a boolean value back from a Custom blockposted in Questions & Answers
if you push f3 do you have a global variable containing true/false? if so return it with a standard block looking for the terminal variable with the name...
-
RE: how I can identify the candlestick with the highest volume during the dayposted in Questions & Answers
You can create this with FX blocks. but sometimes custom code works better and is easier, this will draw a line on previous day volume high candle, you can choose hour TF or current chart TF. Test on backtest, it is MT4 if you need MT5 and you struggle let me know: https://fxdreema.com/shared/XYlynIK4

-
RE: Trades from Trendlines/SDzones?posted in Questions & Answers
Trend lines are easy if it is already drawn, "order blocks" are not so, because you first need to determine what you class as the correct time/prices, then get the EA to react how you want with these prices are hit.
-
RE: break even no vuelva abrir operacionposted in Questions & Answers
Not sure exactly what you need, but on trade tab - trade closed by SL - pink for each closed trade - trade made small profit - check other place trade conditions - place new trade using loop close price.