WLP 5.4.20.0 while autotrading using Strategy Monitor
Author: norfleetc
Creation Date: 7/6/2009 4:07 PM
profile picture

norfleetc

#1
The system is not suspose to open a new position in an equity which already is in a open trade status. I am using a group of equities, 10 min time scale and when the 'buynow' boolean is true, a buy occurs regardless of whether a trade is already on with that equity. Below is the coding that is use to buy

if ((buynow && ( ! IsLastPositionActive))) {
BuyAtMarket((bar + 1), "HitZero%");
p = (int)LastPosition;
}
profile picture

Cone

#2
Not enough information. There's no way to tell if your script is correctly coded by showing us a very small fragment of it. Please use CODE tags when you post more code.
This website uses cookies to improve your experience. We'll assume you're ok with that, but you can opt-out if you wish (Read more).