using fxdreema variables with on OnTester()
-
So I followed a forum that showed you how to use OnTester() in fxdreema for optimization in mt4 and it works, I was wondering if there was a way to use variables made in fxdreema and use them in the OnTester?
Pretty much, the current ontester result I have shows winrate with profit trades/losing trades. I'm trying to change it to profit trades that ONLY hit my take profit/Trades that ONLY hit my stop loss, and disregard the trades that dont do either. My current WINRATE variable in Fxdreema does this already. So is there a way to use it?



-
Wow. I guess the only guys here who can offer you ans answer are miro and roar. This is what I call ultraadvanced fxDreema.

-
@l-andorrà Hahahaha. I'm kinda lurking on this thread hoping to hear what they say, also. Hopefully the OP might try to summon one of them. I'd love to get answers on this. I love the "on tester" stuff in MT4. I have a particular indicator backtesting EA that utilizes it and I can get some pretty good info out of it sometimes. I'd love to be able to incorporate this into my own EA builds.
If roar/miro come along, would one of you mind making a proper tutorial for it and labeling it as such and posting it in the tutorial forum, then linking it here so we know to check it? I'm sure it's worthy of that, if you have the time/energy/patience to do so.

-
@l-andorrà oh haha, in the meantime I've been trying to code it inside MetaEditor but I get mostly errors, i'm just not that experienced, hopefully there's a solution in fxdreema.
-
@l-andorrà @CDWilder1 I know this topic is very old, but I actually figured out how to do this, its as simple as putting
v::(your variable name)
inside the return function, so for me, I want to test based on my winrate variable, so my MQL studio function would look like thisdouble OnTester()
{
return(v::WINRATE);
} -
@supersako Good for you! Thank you for sharing.

-
@supersako said in using fxdreema variables with on OnTester():
@l-andorrà @CDWilder1 I know this topic is very old, but I actually figured out how to do this, its as simple as putting
v::(your variable name)
inside the return function, so for me, I want to test based on my winrate variable, so my MQL studio function would look like thisdouble OnTester()
{
return(v::WINRATE);
}Mind sharing how you calculate your win rate into a variable.
The right now I'm able to output 1 parameters to csv.
Any suggestions on outputting multiple?
-
https://fxdreema.com/shared/8IW5aQHCc
This is how I use to calculate winrate, I don't have any new ones, I just don't use winrate anymore. I have never used csv files so I'm not sure about that.
-
@vonmunchy
https://fxdreema.com/shared/8IW5aQHCcThis is how I use to calculate winrate, I don't have any new ones, I just don't use winrate anymore. I have never used csv files so I'm not sure about that.
-
@supersako thanks for sharing. Let me rephrase my question.
The return gives 1 output. In this case it was a variable. Im trying to have more than 1 variable. Any suggestions on that