Hi,
Could someone please take a look over it (Priority for Long and Short). Both indicators oscillate from 0 - 100 but i get very often signals with a priority of 100. I think that can not be. When i get 10 signals with 1 priority of 100, which siganl has priority?
I'm not a programmer.
greetings damir
CODE:
Please log in to see this code.
Size:
Color:
Hi,
QUOTE:
Both indicators oscillate from 0 - 100 but i get very often signals with a priority of 100. I think that can not be.
I think it can. The 5-period StochRSI is too responsive and it goes from 100 to 0 in a matter of 1-2 bars. Half of the time it's even 0 or 100. It shouldn't come as surprise because your system is programmed so that entries are made when the indicator is either below 26 or above 71.
QUOTE:
When i get 10 signals with 1 priority of 100, which siganl has priority?
I guess your signals are sorted in alphabetical order by symbol name.
Haven't found major issues with the code.
CODE:
Please log in to see this code.
P.S.
1. You have already defined DataSeries for this so why the need in ATR.Value?
CODE:
Please log in to see this code.
2. When doing this...
CODE:
Please log in to see this code.
...keep in mind:
No exit alert during trading hours. This is being discussed on the forum today.
Size:
Color:
Hi Eugene,
thanks.
I am a little confused.Do i not need ATR.Value to compute the ATR (Exit)? or its enough slider6.ValueInt * slider7.Value?
QUOTE:
1. You have already defined DataSeries for this so why the need in ATR.Value?
CODE:
Please log in to see this code.
greetings
Size:
Color:
Damir, there's no harm but it's superfluous since there are DataSeries "Atr_LG" and "Atr_ST".
Size:
Color:
Hi Eugene,
QUOTE:
Damir, there's no harm but it's superfluous since there are DataSeries "Atr_LG" and "Atr_ST".
I do not know how I can make it better. Can you please show me how I can make it clearer
QUOTE:
When doing this...
This is based on an EOD-System. Is it better to use this starting point?
CODE:
Please log in to see this code.
thanks.
greetings Damir
Size:
Color:
Damir,
QUOTE:
This is based on an EOD-System. Is it better to use this starting point?
Not only you cannot start the trading loop from
Bars.Count-1 if you wish to avoid scenario that
topic starter has experienced, but for a different reason. Doing so causes your trading signals to be even more unstable and incorrect because the strategy uses so called "unstable" indicators such as ATR, StochRSI and RSI. For the theory of it please check out the WealthScript Programming Guide > Indicators >
Stability of Indicators. Although
GetTradingLoopStartBar(1) sets a valid starting point I'd prefer to see the maximum lookback period of unstable indicators multiplied by 3. In your case, something like this:
CODE:
Please log in to see this code.
QUOTE:
I do not know how I can make it better. Can you please show me how I can make it clearer
If you mean the usage of DataSeries, below please find an example. Note that the trades will slightly change as the starting bar is now different:
CODE:
Please log in to see this code.
Size:
Color:
Hi Eugene,
thanks a lot.
One more question. I have seen that the Topic Starter has used a fixed Dollar amount - i am working with pos. Sizer of 10%. Only for understanding, plays thats a role?
greetings
Size:
Color:
No, it doesn't in this context.
Size:
Color:
Thanks.
Great people and support.
greetings damir
Size:
Color:
Thanks for your kind words Damir.
Size:
Color: