Pls Help to identify data type for custom indicator
-
I am trying to input the variables of parameters of a Custom indicator into FxDreema but having difficulty as to the TYPE of variable I should input. Pls Let me know what I should input for " TimePrice " & " Modema " & check if the rest of them are correct. Thanks.
TimeFrame - Current time frame [ STRING ]
HalfLength - 64 [INT ]
TimePrice - Median price (there's a choice of 7 to choose from clicking on here.) [ ????? ]
ModeMa - Linear weighted ( there's a choice of 4 to choose from clicking on here.) [ ????? ]
ATRMultiplier 1 - 2.0 [ IS this INT or DOUBLE ? ]
ATRMultiplier 2 - 3.0 [ IS this INT or DOUBLE ? ]
ATRPeriod - 240 [ INT ]
Shift - 0 [ INT ]
Multicolor - True ( choice of true or false.) [ BOOL ] -
-
I have changed " TimePrice " data type as " ENUM " but when clicking on the " exe" tab, generates an Error message as data type "unidentifier ".I also tried inputting as " ENUM_TimePrice " and still come up with errors. What should I do ?
-
Also I saw on youtube , a category in FxDreema Forum called " Working with FxDreema ", can't see that category in the forum now.
-
@yogibear13 Please, read well the documentation and click on the external links. Anyway ENUM_APPLIED_PRICE
-
But my Indicator does not have " Applied Price " as a parameter, instead it has " TmaPrice ." So what should I input as data type because I cannot make out anything from the links provided.
-
@yogibear13 please, can you upload your indicator?
-
Here is the uploaded Indicator.0_1612964760960_TMACentered_End_Point +2xbands_mtf_V2.ex4
-
-
The data type " ENUM_APPL & ENUM_MA_ " is partly obstructed& cannot see the whole of it. Would you mind typing here the full form for both data types.

-
@yogibear13 https://fxdreema.com/forum/topic/7923/ea-enum-constant/2
https://fxdreema.com/forum/topic/8073/another-question-for-real-programmers/2ENUM_APPLIED_PRICE
ENUM_MA_METHOD@yogibear13 you haven't read the topics i gave you.
-
Many Thanks. I have amended as above. But I have put Value of "5" for TmaPrice and "4" for ModeMa. Will this still work ? Also, are these Constants & Constants / variable Box connected to a particular indicator or are just general ? Lastly if I want to bring up this Constants box again for this particular indicator to amend it, how is that done ?
-
I have amended as you have shown me. When I click on the exe tab, I get error message " Median Price ", " Linear Weighted " as undeclared identifier. I noticed that when intially i manually entered the parameters in the custom indicator Box, i had entered values as " Median price " and " Linnear Weighted ". Should I had entered as numbers ?
-
@yogibear13 yes, you have to put numeric value (i leaved 0 so this value can be modified in the input tab of the EA, as my screenshot above)


-
Could ypu pls help me on this one as well (as in the picture).
On Blue Arrow , Ea buys & on Red Arrow Ea sells.
In the picture, after taking the BUy trade at No.1, Red arrow appears No.2.
So, Previous trade is closed [BUY 1] & New Sell [2] is opened.
But another Red Arrow appears No.3 and I also wish to open & take this trade as well. But now according to the FxDreema diagram ( below the MT4 chart ), it will open the 2nd RED Arrow trade BUT will close the previous one [No.2] BUT I wish to keep BOTH No. 2 & No. 3 opened until an opposite BLUE Arrow appears.
So, is there some function that can say :-
" IF Previous opened order is opposite ie. BLUE, THEN CLOSE, OTHERWISE OPEN SELL ORDER " Vice versa for the Blue arrow orders. -

