Newbie RSI
Forums › ProRealTime English forum › ProOrder support › Newbie RSI
- This topic has 17 replies, 2 voices, and was last updated 4 years ago by
FDtoday.
-
-
02/08/2021 at 11:28 AM #160648
Good morning new here but not to trading, I am trying to use a simple code to grab positions when RSI dips below for a long position. Then bank when reverses making x many points. The backtest works but the live scenario doesnt place any orders when running and wondering if I am missing anything obvious here is the code not much too it as testing only to get it working first. Any help would be grateful thank you.
12345678910111213// Definition of code parametersDEFPARAM CumulateOrders = False // Cumulating positions deactivated// Conditions to enter long positionsindicator1 = RSI[10](close)c1 = (indicator1 CROSSES UNDER 38)IF c1 THENBUY 2 PERPOINT AT MARKETENDIF// Stops and targetsSET TARGET pPROFIT 5002/08/2021 at 12:01 PM #160659Always use the ‘Insert PRT Code’ button when putting code in your posts to make it easier for others to read.
Thank you 🙂
02/08/2021 at 12:09 PM #16066202/08/2021 at 12:26 PM #160669You also posted inthe wrong support forum, it’s ProOrder for strategies, as you can read from the highlighted rules below (in yellow). I moved it to the correct place.
I tested on a 5-minute TF with 200K units anditworks.
What TF and how many unists are you using?
Because there could be no valid entry conditions with a few units.
02/08/2021 at 12:29 PM #16067002/08/2021 at 12:31 PM #160671Yes, while backtesting.
No,when the strategy runs in AutoTrading.
02/08/2021 at 12:35 PM #160672Yes, while backtesting.
No,when the strategy runs in AutoTrading.
Perfect amended with 1gr 1k unit to test it. Ill see if it works if moves down today.
02/08/2021 at 12:57 PM #16067912345678910111213141516//-------------------------------------------------------------------------// Main code : short test//-------------------------------------------------------------------------// Definition of code parametersDEFPARAM CumulateOrders = False // Cumulating positions deactivated// Conditions to enter short positionsindicator1 = RSI[10](close)c1 = (indicator1 >= 70)IF c1 THENSELLSHORT 1 PERPOINT AT MARKETENDIF// Stops and targetsSET TARGET pPROFIT 15I just tried a short as it was going the other way still didnt work :/. I just done a manual sell and that worked from prorealtime so the link is working. RSI crossed over 71 so well over the 70.
02/08/2021 at 1:01 PM #16068202/08/2021 at 4:19 PM #160701So that short worked, I set up a 10 minute long and that didnt work again? What am I doing wrong :/
12345678910111213141516//-------------------------------------------------------------------------// Main code : small RSI 10m 39//-------------------------------------------------------------------------// Definition of code parametersDEFPARAM CumulateOrders = False // Cumulating positions deactivated// Conditions to enter long positionsindicator1 = RSI[10](close)c1 = (indicator1 CROSSES UNDER 39)IF c1 THENBUY 1 PERPOINT AT MARKETENDIF// Stops and targetsSET TARGET pPROFIT 1002/08/2021 at 4:21 PM #16070302/08/2021 at 5:35 PM #160713What instrument,TF and units are you using?
02/08/2021 at 7:14 PM #160740Hi,
Im using FTSE, 1hr 1000units. I have just redone it all from scratch and will leave on my home pc and see if it triggers. RSI =< 37 and then another order RSI =< 28 . Its quite simple just more for when I am unable to open a trade it will catch the move for me is my thinking.
12345678910111213141516//-------------------------------------------------------------------------// Main code : RSI under 38//-------------------------------------------------------------------------// Definition of code parametersDEFPARAM CumulateOrders = False // Cumulating positions deactivated// Conditions to enter long positionsindicator1 = RSI[10](close)c1 = (indicator1 <= 38)IF c1 THENBUY 2 PERPOINT AT MARKETENDIF// Stops and targetsSET TARGET pPROFIT 4502/09/2021 at 8:29 AM #160765This didn’t work, left running overnight and went sub 38 this am and hasn’t triggered frustrating. I have change the =< to crosses under but I dont see what difference that should make.
From trying a few things it seems a little random if they work or not any help is appreciated, I feel im missing something obvious.
02/09/2021 at 10:06 AM #160774It’s due to very strict conditions. On my test on FTSE, 1h, 200K bars (10 and a half years), it only took 66 trades, that is 6 trades/year, which is 1 trade every other month!
You have to keep it running at least one year to see some trades opened, not just overnight!
-
AuthorPosts
Find exclusive trading pro-tools on