I added the printf function to find out what the BuyStop and SellStops are for the oil asset.

BuyStop = HH(10) + 1*PIP;
SellStop = LL(10) - 1*PIP;
printf("\nSellStop %+4.2f");
printf("\nBuyStop %+4.2f");

This is the result. Right now I can't think why the SellStop = the BuyStop in every instance. Edit (I didn't add the variable after the string as in printf("\nSellStop %4.2f", SellStop);

It works now.

BuyStop +47.19
SellStop +47.19
BuyStop +47.19
SellStop +47.19
BuyStop +49.11
SellStop +49.11
BuyStop +49.74
SellStop +49.74
BuyStop +50.08
SellStop +50.08
BuyStop +50.96
SellStop +50.96

Last edited by RTG; 10/12/15 01:49.