
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
some ideas, what is wrong... anyone ?
thank you
Once you create an object . . .
. . . you cannot create it again, it already exists . . . instead check if it exists and if it does don't try and create it again, just move it using ObjectSet()
i used a different name for each candle so it was no problem with the object.
i rewrite it like this and now works perfect:
sets a sell level, and if i get two closes over that level -> LevelSset=false -> starts searching for next LSell.
hi, need some help.
i can not make a time expiration condition for the price level. as i mention before, if the price stays under LSell or over LBuy for more than 96 candles, to dismiss that price level.
i was trying to use if(Time[high_bar]<Time[96]) && LevelSset=true.... set LevelSset to false... but it seems is not working.... void CkExpLSell ()... i'm sure i'm doing something wrong but... i have no idea what, so help pls :)
hi, need some help.
i can not make a time expiration condition for the price level. as i mention before, if the price stays under LSell or over LBuy for more than 96 candles, to dismiss that price level.
i was trying to use if(Time[high_bar]<Time[96]) && LevelSset=true.... set LevelSset to false... but it seems is not working.... void CkExpLSell ()... i'm sure i'm doing something wrong but... i have no idea what, so help pls :)
the name of the line is telling you moment it is created
i have given you in this topic already how to check using the name of the line the way to check for time expiration
and i don't see you are using that method !!
Your indicator can't do tradingfunctions !!!!!!!!........
Make an EA if you do OrderSend
the name of the line is telling you moment it is created
i have given you in this topic already how to check using the name of the line the way to check for time expiration
and i don't see you are using that method !!
@ deVries ObjectGet(Name, OBJPROP_TIME1) is even better, no need for unnecessary code (StringSubstr() StrToTime())
hi guys,
on strategy tester things look ok. then i put the ea on different platforms demo accounts and it worked (setting price lvls and making trades as expected) until this error appeared.
i change the testing period in strategy tester and i got the same error... it doesn't matter if it is a LevelBset or LevelSset the ea is setting the level at the correct price, then the price level is modify to 0.0000.
i didnt find the mistake till now, so please check my code.
thank you for your help.