Time coding help please

 

I am looking for some help. what would the open position code look like i just don't know where to start with this one.

I have an idea for and EA using timed entries but I'm useless at coding.

THE IDEA

TF 1hr

time sequence 1,2 3,5,8,13,21,34,55 mins of each hour open a position

if current price is above open then buy

if current price is below open then sell

lot size start default 0.01 micro

if you have 2 sell position open and the price moves above open then the next position should be 0.2 buy ie the lot size should be equal to the number of open position in the opposite direction

Exit all positions on the open of the new bar and start sequence again.

Cheers

Kiwi

Reason: