"x" number of candle closes above/below MA
Created at 28 Apr 2021, 19:39
TS
"x" number of candle closes above/below MA
28 Apr 2021, 19:39
Hi,
I'm new and currently still learning how to code by reading forum posts and dismantling code step by step.
I'm looking for a cbot code that only opens a Buy position if a price closes above an EMA and the last e.g. 10 candle closes were below that EMA.
I was not able to find anything that looked remotely similar to this code.
Any help is appreciated.
Thank you :)
Thomas
amusleh
29 Apr 2021, 11:27
Hi,
You can use this sample cBot:
@amusleh