Following call should buy if next bar goes higher than current bar's high:
Code:
EntryTime = 1; enterLong(0, priceHigh(), 100*PIP, mytarget);


Where will be the stop placed? 100 PIP below current high at time of calling the function or 100 PIP below the order fullfillment price? Same question for TakeProfit?