[SHARE] Simple RSI BULL/BEAR strategy
(08-26-2018, 06:58 PM)martyc Wrote: Can someone confirm the logic for me please?

I've just been watching the logs and tradingview as the price has been changing.  SMA long went under SMA short about 90 minutes so am in BEAR mode with RSI range (58-10). RSI pops up to 61 for a single 5 minute tick and the logs then show it start to try and sell.  All good so far.  
Not able to sell as the the price is starting to fall, puts in a cancel, looks at the order book and puts in a new sell at a new lower price. At this stage the RSI is now back under 58. Still not able to sell, issues another cancle and puts in a third sell at again a lower price. 

Q1. Am I understanding this correctly?
Q2. Is this expected behaviour?
Q3. Is it possible to change the code so that if it is unable to sell an then issues a cancel, it first checks is the decision to sell still valid before it reissues the sell at a lower price?

Cheers
Currently looking at two 'improvements'? 

Some sort of whipsaw prevention where it will use Math.min(maSlow,maFast)/Math.max(maSlow,maFastto make sure that we are not in the process of crossing from BULL to BEAR or vice versa. If the ratio is 0.997 or greater then do nothing until next tick.

Check the volume before selling.  I see a number of instances where I have bought in a BULL and then it changes to a BEAR and then pops above the bear high for 1 tick on minimal volume and I get sold out.  Some sort of check of the volume may work.
  Reply


Messages In This Thread
Werkkrew Stoploss - by susitronix - 02-02-2018, 09:39 PM
Removed post - by susitronix - 02-03-2018, 06:49 PM
@Gryphon Confirmation - by mvangoor - 03-22-2019, 11:59 PM
for 3 months - by ankasem - 02-18-2018, 05:30 PM
RE: [SHARE] Simple RSI BULL/BEAR strategy - by martyc - 08-26-2018, 08:07 PM

Forum Jump:


Users browsing this thread: