Custom parameter to draw a line
-
Hi everybody, as written above i'd need to set a custom parameter to draw a line.
Example: Chart & objects > Draw line > Object type: Candle > Parameter: (high+low)/3Is it possible to set a custom parameter?
Please tell me it is.
Thanks in advance.
Federico -
Yes, you can create your own customized fxDreema block by selecting this:

-
@trading-prana Why not create a variable with the value of (high+low)/3 and then use that variable as the value for the line?
-
I'm afraid I don't know how to do that, sorry.
-
@cpbonzo I'm very new to this program. I'll try, thanks a lot for now
-
@cpbonzo Hi and thanks for answering. I tried but I don't know how to put the variable as the value for the line. Can u help me?
-
@trading-prana Once you have the variable created, it needs to be placed as a value in the Draw Line block. In this instance, you will need to set the block to draw a horizontal line and then the value below that relates to the price i.e. the height on the chart at which you want the line to be drawn. Change the setting in the first of the pull-down menus to "Value", the second to "Numeric" (it should default to that) and then where you see a current value of "1" right-click that box and a list of your constants and variables will be displayed. Pick the variable created to give (high+low)/3 and the line will be drawn at that level on the chart.
Of course, the value (high+low)/3 is in most occasions going to be significantly below the current price so you may need to zoom way out on the chart to see it.
-
@cpbonzo Thanks a lot, I owe u ;).
Only problem; it gives me this error when I try to export the ex4. U know why?
"Compilation errors
'high' - undeclared identifier
'low' - undeclared identifier
'open' - undeclared identifier
'close' - undeclared identifier" -
@trading-prana I can't say without seeing how you are creating your variables.
-
@cpbonzo it also happens if I choose a preset parameter like "median price".
-
@cpbonzo If u want: shared/fKm5kSFic
-
You need to upload the full http path.