Comment on Code your Technical Analysis strategy

Sidharath commented on 15 Oct 2013, 12:50 PM

Hi Sir,
can u give me the buy and sell expression for the below strategy:
# Calculate the x period simple moving average . Use the end-of-minute prices.. Let’s say it as reference_1.
# Compute a point that is 1% above reference_1. Let’s call it as reference_2. E.g. If X period simple moving average is 6000, then ref_1 = 6000 and ref_2 = 6060.
# Starting position = FLAT.
# At the end of any minute, if price > ref_2, go LONG.
# When position is LONG, at the end of any minute, if price < ref_1, close the long position.
Anticipating great amount of support in this regard

View the full comment thread »