Posted By: Pork
Using the open_trades enumeration loop - 10/02/13 15:15
Hi there,
I would like to examine the open trades' open price and set a variable. Whenever I add this code the SCRIPT CRAASHES
The code works until a trade is actually opened. And it doesn't work in a called function.
Where am I going wrong?
if(TradeIsOpen) {
for(open_trades){
if(TradePriceOpen>CheckPivotH) {
CheckPivotH=TradePriceOpen;
}
if(TradePriceOpen<CheckPivotL) {
CheckPivotL=TradePriceOpen;
}
}
}
Thanks
P
I would like to examine the open trades' open price and set a variable. Whenever I add this code the SCRIPT CRAASHES
The code works until a trade is actually opened. And it doesn't work in a called function.
Where am I going wrong?
if(TradeIsOpen) {
for(open_trades){
if(TradePriceOpen>CheckPivotH) {
CheckPivotH=TradePriceOpen;
}
if(TradePriceOpen<CheckPivotL) {
CheckPivotL=TradePriceOpen;
}
}
}
Thanks
P