Help with Trailing SL
#8
So can someone advise on this please.

I want the follwoing to happen:

Buy when medium crosses above the long
Sell when medium crosses below the long
Sell when the short crosses below the medium but medium is still above the long
Buy when the short crosses above the medium but the medium is still above the long

code currently is:
Code:
if((short > medium) && (medium > long)) {
   this.advice('long')
 } else if((short < medium) && (medium > long)) {
   this.advice('short')
 } else if(((short > medium) && (medium < long))) {
   this.advice('short')
 } else {
   this.advice();

I think its almost there but can some one help me??

Also how do i add console notifications in this saying buy and sell.
thanks
  Reply


Messages In This Thread
Help with Trailing SL - by Kris191 - 07-12-2018, 03:40 PM
RE: Help with Trailing SL - by Kris191 - 07-16-2018, 12:57 PM
RE: Help with Trailing SL - by askmike - 07-17-2018, 03:06 AM
RE: Help with Trailing SL - by Kris191 - 07-17-2018, 08:01 PM
RE: Help with Trailing SL - by crypto49er - 07-18-2018, 07:09 PM
RE: Help with Trailing SL - by Kris191 - 07-18-2018, 09:25 PM
RE: Help with Trailing SL - by mark.sch - 07-18-2018, 08:31 PM
RE: Help with Trailing SL - by Kris191 - 07-19-2018, 05:37 AM
RE: Help with Trailing SL - by crypto49er - 07-20-2018, 05:32 PM
RE: Help with Trailing SL - by Kris191 - 07-22-2018, 12:03 PM
RE: Help with Trailing SL - by crypto49er - 07-22-2018, 06:13 PM

Forum Jump:


Users browsing this thread: