Hello
I try to make an Autotrading System, but my problem is when its generate a Limit order, my Script cant find out if the Order is be filled.
Or survey I something?
So, I need this Functions:
PositionActive, PositionEntryPrice, PositionExitPrice, PositionEntryBar, PositionExitBar
Here is an example how I present it to me:
I hope you guys understand me and can tell me what I can do.
Thanks
I try to make an Autotrading System, but my problem is when its generate a Limit order, my Script cant find out if the Order is be filled.
Or survey I something?
So, I need this Functions:
PositionActive, PositionEntryPrice, PositionExitPrice, PositionEntryBar, PositionExitBar
Here is an example how I present it to me:
PHP Code:
function main() {
if (PositionActive == false) {
buyLimit(getSymbol(), 1, close()-2, "Globex", "200512");
}
if (PositionActive == true) {
sellLimit(getSymbol(), 1, PositionEntryPrice+8, "Globex", "200512");
}
}
Thanks
Comment