Using Multiple Indicators
Forums › ProRealTime English forum › ProOrder support › Using Multiple Indicators
- This topic has 15 replies, 4 voices, and was last updated 4 years ago by
SpreadBetMH.
-
-
08/25/2021 at 7:06 PM #176235
SO, this is possibly a stupid question, but here I go,
Building a trading system,
I’m using four RSI’s Indicators ” How I get those four RSI’s is by selecting RSI Indicator and then Duplicating it Three times”
1, Long Entry
2, Long Exit
3, Short Entry
4, Short Exit
Can I optimise the four RSI’s separately?
Thank You
to anyone that replies
08/26/2021 at 8:18 AM #176256Are you talking about automated trading?
What do you want to achieve exactly?
08/26/2021 at 9:10 AM #176261Sorry, Yes I’m talking about Auto Trading
The Idea is to build a system using four individual RSI’s & be able to Optimise each one of the 4 individually
08/26/2021 at 9:56 AM #176270Just give them different names, for example:
1234indicator1=RSI[a](close)indicator2=RSI[b](close)indicator3=RSI[c](close)indicator4=RSI[d](close)a, b, c, and d can then be optimised to give a different period for each one.
1 user thanked author for this post.
08/26/2021 at 9:58 AM #176271I moved this topic to ProOrder as it concerns automated trading systems.
There you go a TS with 4 RSIs:
1234567891011121314DEFPARAM CumulateOrders = FalseRsi1 = Rsi[5](close)Rsi2 = Rsi[10](close)Rsi3 = Rsi[15](close)Rsi4 = Rsi[20](close)Lcond = Rsi1 > Rsi2 AND Rsi2 > Rsi3 AND Rsi3 > Rsi4Scond = Rsi1 < Rsi2 AND Rsi2 < Rsi3 AND Rsi3 < Rsi4IF Lcond AND Not LongOnMarket THENBUY AT MarketELSIF Scond AND Not ShortOnMarket THENSELLSHORT AT MarketENDIFSET STOP pLOSS 100SET TARGET pPROFIT 400You can optimize all indicators, at the same time or individually.
08/26/2021 at 10:00 AM #176274I was coding while nonetheless was posting. That’s correct.
08/26/2021 at 11:04 AM #176279Thank You Roberto,
Your a Genius,
I was wondering, when I use RSI, RSI crosses over 30 for a Long Entry
Long Exit crosses over 70
Short Entry 70
Short Exit 30
Are those values in the code, so, that I can Optimise them
Kind Regards
08/26/2021 at 11:20 AM #176280Do ALL the 4 RSIs have to cross those levels simultaneously?
08/26/2021 at 11:30 AM #176285No
If long Entry crosses over Level 30, then a Long position is entered
then the Long Position is closed when the RSI crosses over 70 or Take Profit is reached
the same for Short Entry when it crosses under level 70
then crosses under 30 or take profit is reached
08/26/2021 at 11:46 AM #176286Yes, but you asked 4 indicators, which one shall I use?
1 user thanked author for this post.
08/26/2021 at 1:33 PM #176296will the idea is to use 1 indicator per position
Long Entry, RSI 1 Level 30
Long Exit, RSI 2 Level 70
Short Entry, RSI Level 70
Short Exit, RSI Level 30
Thanks
08/26/2021 at 1:57 PM #176298if you’re only using 2 different values then you only need 2 indicators
12indicator1=RSI[30](close)indicator2=RSI[70](close)then you can use “crosses over indicator1” or “crosses under indicator2” or close>indicator1, close<indicator2 (for example) for whatever action you want to associate with that event.
1 user thanked author for this post.
08/26/2021 at 7:53 PM #176312Hello,
So, I can Optimise the 14 Day of each one separately and 30 level
Thanks
08/26/2021 at 8:56 PM #176313Thank You Roberto,
Your a Genius,
I was wondering, when I use RSI, RSI crosses over 30 for a Long Entry
Long Exit crosses over 70
Short Entry 70
Short Exit 30
Are those values in the code, so, that I can Optimise them
Kind Regards
Hello,
After reading this discussion several times to understand what is the exact need, this is what i understand:
You don’t need 4 indicators, but as you are using the builder and not programming, the code is creating 4 indicators automatically so that you can have your 4 conditions.
You just need 1 RSI with a BUY LONG order when it crosses 30, exit when it reaches 70, then SELL SHORT when it crosses down 70 and exit short when it reaches back 30. Assuming that there will be a smooth oscillation from overbought to oversold zone every time, which is not always the case.
If so, which period of RSI you are considering? the default 14?
If not, then I’m afraid the need is very difficult to understand, sorry
Some example of code, but may need to be completed with Stop Loss if exit conditions are not reached before RSI reversal values.
Example of code, but not tested123456789101112131415DEFPARAM CumulateOrders = FalseRsi1 = Rsi[14](close)Lcond = Rsi1 crosses over 30LcondExit = Rsi1 crosses over 70Scond = Rsi1 crosses under 70ScondExit = Rsi1 crosses under 30IF Lcond AND Not LongOnMarket THENBUY AT MarketELSIF LongOnMarket and LcondExit THENSELL AT MarketELSIF Scond AND Not ShortOnMarket THENSELLSHORT AT MarketELSIF ShortOnMarket AND ScondExit THENEXITSHORT AT MarketENDIF2 users thanked author for this post.
08/26/2021 at 10:56 PM #176320So, I can Optimise the 14 Day of each one separately and 30 level
Yes, but I misunderstood what you’re trying to do and my last post is misleading – my bad. You only need a separate RSI if you’re going to use a different period. If they’re all going to be 14, then as Swingeur says, you only need one and that can be used to exit or enter at any level.
30 and 70 are obviously the levels you want to use and not the period (as I mistakenly wrote above, while half asleep). I hope this is at least slightly clearer than mud.
1 user thanked author for this post.
-
AuthorPosts
Find exclusive trading pro-tools on