Hi there,
I am a new ProRealTime user and just working my way through the programming manual in order to get to grips with the programming language!
It would be ever so helpful if someone could tell me the correct code for the following – they are simple instructions, but it will just help with my understanding of how very basic coding works:
1.) If price increases for 2 consecutive trading days, buy on the next day’s open and hold for 2 full days, then sell.
2.) If current day’s close price is 2% above previous day’s close price, buy.
If someone would be kind enough to tell me the code for the above lines, it would help me with a couple of areas of coding I’m stuck on!
Many thanks,
Rob