Open position on RSI crossing 50 only
Forums › ProRealTime English forum › ProOrder support › Open position on RSI crossing 50 only
- This topic has 11 replies, 5 voices, and was last updated 1 year ago by LucasBest.
-
-
12/03/2023 at 6:03 PM #224759
Hi ,
- i work on RSI strategy, but there is issue i can’t find the slotion , i want it to open position once RSI cross 50 only , but the system keep open postion once the RSI above 50 .
Attached the indicators & the system .
- secondly, can i let the system work only MES , and can`t be used for NQ or DAX any others? thanks
12/03/2023 at 6:13 PM #224763Give your topic a meaningful title. Describe your question or your subject in your title. Do not use meaningless titles such as ‘Coding Help Needed’.
I changed it.
Thanks 🙂Remove line 13 and replace line 17 with:
1RETURN c112/03/2023 at 6:24 PM #224764Posting the code makes it easier and quicker for us to help as we can copy your code and then amend, with code in .jpg we have to type it out and keep looking back at your code in the jpg.
Try coding betwen If and Endif in your Indicator as below …
12345If date < limitdate AND RSI[14](close) crosses over 50 ThenSignal = 1ENDIFReturn signal1 user thanked author for this post.
12/03/2023 at 6:27 PM #22476512/03/2023 at 7:17 PM #224770secondly, can i let the system work only MES , and can`t be used for NQ or DAX any others? thanks
We can run Algos on 1 Instrument only, so either MES, or NQ or DAX or any other single Intstrument.
I don’t think we can specify an Instrument within the Algo code; maybe somebody will jump in and say otherwise??
12/04/2023 at 8:54 AM #22479112/04/2023 at 9:43 AM #22479312/04/2023 at 2:30 PM #22481912/04/2023 at 2:52 PM #22482312/04/2023 at 3:22 PM #224827There is no specific instructions for the code to know wich instrument/asset is used, but as far as you know 1 or 2 (or more) accurates values of the asset in the past, maybe you can use them to let the system know if the asset/instrument is the good one (by comparing the values of the assets at those specific date to the ones you have put in the code)
1 user thanked author for this post.
12/04/2023 at 3:55 PM #224829Hi Lucas,
This idea is very good – I used it for myself some times (make Strategy depended on Instrument) – but in practice (Market Place application assumed) I don’t see this as something easy to accomplish.
Say that you have the rougher TimeFrame of 1 day, then this 1 day could be used to look back (with one command, not a loop – a loop would be a no-go). But say that this starts today (ES being at 4575 as of now), then in a year of time this would this work, if you have PreLoadBars set to a virtual year. But also, because you’d also need the smaller TF of e.g. 15 minutes, then this may not be achievable in the 10000 of PreLoadBars we have. I did not do the math, but my guts tell me “not”.
If the System is adjusted regularly *and* reloaded by the customer, it might work. But if the customer forgets to do that, suddenly his System will be rejected. And of course by then this is now understood.
For Fahad :
123456// Determine whether system is ES.// E.g. ES = 1 has determined that ES is in order.If Not ES thenQuit // I suppose this will silently stop the System as if it was never started.EndifI must say, I always wonder how what you see below can be applied. So maybe the solution is in there somewhere ?
And then indeed what GraHal says … maybe vendors on the Market Place know ? @Nicolas ?12/04/2023 at 4:18 PM #224837Hi Lucas,
This idea is very good – I used it for myself some times (make Strategy depended on Instrument) – but in practice (Market Place application assumed) I don’t see this as something easy to accomplish.
Hi Peter,
Of course, this would require regular adjustment.
But at the same time, a strategy that used with an asset that it has not been optimised for would give very poor/bad result and that is maybe the best argument for avoiding to do that…
-
AuthorPosts
Find exclusive trading pro-tools on