02-05-2019, 02:03 AM
Could someone help me to work out this code.. ?
I want to trigger it when the RSI hits 75, to check every candle and see if the RSI is higher or lower than the last candle, if its higher, do nothing, if its lower, sell.
Any one help me work out how to do this? Im pretty new to code..
Thanks!
Code:
// Sell when RSI > 75 - want to change to allow for riding bull trends properly. - watch rsi each candle after 75 and sell when it starts dropping again.
if (rsi2.result > 75 && advised) {
this.sell('Take Profit - RSI past 75');
I want to trigger it when the RSI hits 75, to check every candle and see if the RSI is higher or lower than the last candle, if its higher, do nothing, if its lower, sell.
Any one help me work out how to do this? Im pretty new to code..
Thanks!