input my indicator name in the input setting
-
pls can someone help me with a way I can input the name of the indicator am using into the input settings area.
I will be glad for any help thank you very much. -
constants - string (type) - name (anything you like) - value (the name of your indicator)
-
@jstap Just curious. Will that make the indicator selectable i some way? I mean, you are selecting a string variable and that's a text only. Why the name of an indicator can be useful and not the indicator itself? Sorry for my ignorance.
-
Maybe I was wrong but I thought he wanted to display the name to make sure anyone using would know the indicator needed
-
@l-andorrà
It is useful if you add a MQL block with the icustom function.Especially with default inputs and fixed buffer as signal (e.g. first buffer is buy signal and second signal is sell signal)
In this case, you can test a lot of strategies with just custom indicator name change.
As I remember, there was an old forum someone used similar technique to use many custom indicators as input signals to get final output signals.
-
thank you guys i have been able to do it .
just linked the name in the input with a string as you people said to the icustom function -
thank you guys i have been able to do it .
just linked the name in the input with a string as you people said to the icustom function -
help me with this .....
Please my indicator give both buy and sell signal at the same time on each candle stick but i want to trade the arrow that appears first and if the second arrow appears it should not be traded there by ignoring it .
Meaning only one action should be allowed on each single candle stick, if it is entry action it should be the first signal only ,if it is exit the opposite first signal arrow only.i will be glad if anyone could help me on what and how to go about the blocks to use.
thank you.
-
There is a block once per bar, put this in between the arrow appears block and the action block
-
if you put it in between those blocks it open trade once for both buy and sell, but I want it trade only once even when there is both signal arrows
on that same candle -
do both arrows appear at the same time?
-
@sktsec Yes, I get the idea. I was just asking the way to get that.
-
Suppose indicatorName is the indicator name variable.
The first signal is buy signal and second sell signal.
A MQL4 block simply containingbuySignal = iCustom(NULL, 0, indiatorName, 0, 0)
sellSignal = iCustom(NULL, 0, indiatorName, 1, 0)will get the corresponding signals from indicator named by the variable indicatorName
But the limitation in this case is that the inputs are all set to default value
-
i just want the robot to trade only once a candle thou there may be two signal arrow on the candle
-
@sktsec Interesting. Thank you.