You can use this, only check the lot before using, or use global variables: https://fxdreema.com/shared/AvGd9ic5c
Posts made by jstap
-
RE: Lots multiplication problemposted in Questions & Answers
-
RE: I need some examples for Custom Blocksposted in Questions & Answers
Information on building custom blocks is limited but can be handy. Hope this helps, this is all I have sent from @fxDreema, you can add code here that you can't add to custom code.
Blocks doesn't output information outside. Even those that are able to modify variables for example (Formula, Modify Variables), this functionality is hardcoded only for them. See how their code looks like in the Studio:


The settings on the right side (Parameters used in block) are the input parameters of the block. This is true for all blocks, but In these two cases there is a little bit of hidden magic happening. -
RE: GROUP EMA CROSSOVERposted in Questions & Answers
They can be, because < > is when a cross has happened
-
RE: Calculate equity drawdown percentage and open opposite direction tradeposted in Questions & Answers
Try this, it will work with any trade, but uses the account value:

-
RE: Breakeven and trailing stopposted in Questions & Answers
The pass block could have been that or if trade, but that is what I meant by tee off rather than in-line
-
RE: Calculate equity drawdown percentage and open opposite direction tradeposted in Questions & Answers
I don't mind helping/guiding, but you'll have to tell me what the EA is doing/supposed to do
-
RE: Can I add custom indicators ?posted in Bug Reports
You cannot convert you have to find or pay a coder to create
-
RE: Can I add custom indicators ?posted in Bug Reports
If you have the meta trader version, add to my indicators
-
RE: How to set Flag to true/false after consecutive losses?posted in Questions & Answers
Move everything that's on chart onto on tick, on chart only works on live/demo, and only on tick works on backtest
-
RE: ClosedProfit() functionposted in Questions & Answers
No mate because you would have gotten it on your 1st post, (you did get help on that post), call people like @roar without the need to duplicate threads. I am quite interested to see if we can use custom functions here, I don't think we can. As I said you can get all the needed info from pink blocks.
-
RE: How to set Flag to true/false after consecutive losses?posted in Questions & Answers
You do not need 2 comments, this is why I showed it above as 1, this will show you what is happening. This is not ideas, it is a proven and tested way to do things

-
RE: Breakeven and trailing stopposted in Questions & Answers
There is only 1 difference to being inline:

-
RE: How to set Flag to true/false after consecutive losses?posted in Questions & Answers
Create a comment so you can see the result
-
RE: Breakeven and trailing stopposted in Questions & Answers
No not in a line, both teed off the if trade block
-
RE: Lots multiplication problemposted in Questions & Answers
I am not sure you understand, the next up from 0.01, is 0.02, if you want 0.015 then you can not achieve this on Meta Trader (maybe some accounts use 0.000) but if so I do not know how to use, or what accounts that would be.
-
RE: Breakeven and trailing stopposted in Questions & Answers
@jstap said in Breakeven and trailing stop:
Connect both off the no-trade block, in line means once BE happens, blocks under can't work. Make the trial start once BE has happened
-
RE: Breakeven and trailing stopposted in Questions & Answers
Connect both off the no-trade block, in line means once BE happens, blocks under cant work. Make the trail start once BE has happened
-
RE: TIME FILTERposted in Questions & Answers
This will keep the time filter a constant 30 minutes apart: https://fxdreema.com/shared/tojuV4Pke
-
RE: Breakeven and trailing stopposted in Questions & Answers
I am pretty sure these options are in the standard blocks, if it doesn't and needs a SL at start set it a long way away, BE will set/move the stop how you set it, the trail is the same, just set a start that +/= BE.