FxDreema as an indicator?
-
Hi, i'm looking for the same thing, is there any update about formula that normalize to max 2 decimals?
many thanks -
Would it be possible to use a code made in fxdreema as an indicator or is it possible to save it as an indicator?
If I want to print out the numbers for Average True Range on the chart.If I want it to count this in pips so I know where to set my stop loss and take profit. An indicator that helps me trade live. One that show me the info on the charts instead of being a robot.
Is this possible?
There are so many chart display blocks. Not sure which ones to use for this. -
I think I am getting something that works now, but is there a way to make something show with max 2 decimals?
If I want to print the LOTS to trade and don't want it to look like this: 0.17502
Is there a way to remove the last ones and just print: 0.17Is there something in the formula that can be used to only show a number rounded to 2 decimals?
-
https://www.mql5.com/en/docs/convert/normalizedouble
https://www.mql5.com/en/docs/convert/doubletostringThese are the native MQL4/5 functions that can round the number to certain decimals. In the blocks there is no other way to do this thing and I can't even guarantee that these functions would work. This part of MQL5/MQL5 is hard for me to explain and often even to work with.
-
I made it in the code for at least one part. But it's boring to do it all the time when I test things, but I guess I can wait until everything is working and then do the fine tuning when I'm done.
But it would've been nice with a little code in the formula block to make it work...

-
Now that you are saying this, it sounds very logical to have such option in Formula

-
@fxDreema Did you ever add this function? Have a bunch of formulas and 13 decimals after them. The table results look pretty crazy. It is easy coding by line to do it. Do I need to go through each calculation and add the code to do this or can I do it on the FxDreema platform?
-
Is it possible that only change onchartevent with oncalculate for use EA as an indicator ?
i do this and that seem work properly But I do not know if it will be bug in the future!
Thanks -
These long numbers again... No, I didn't added this to Formula, obviously.
https://www.mql5.com/en/docs/basis/function/events - "The OnCalculate() function is called only in custom indicators"