07-19-2018, 05:37 AM
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:
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
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