Thank you very much for your help. i really appreciate.
Yes what you have posted is the same idea written slightly different.
The problem i have is that i don't have any way to check either using DEBUG or using TRACE what is lastbuyprice or lastsellprice doing so it can be very hard for me to build the system if it gets more complicated.
If you try with debug or just adding this line above the buy and sell conditions you posted you will see that the _TRACE is not giving any value for lastbuyprice or lastsellprice
....
_TRACE("lastbuyprice="+lastbuyprice+" | lastsellprice="+lastsellprice);
// it always gives lastbuyprice= 0 | lastsellprice= 0
// same with debug.
Buy = buycond1 OR buycond2;
Sell = sellcond1 OR sellcond2;
....
So is the buycond2 or sellcond2 being executed or not. and even if it is, why i cannot see the variables content on debug or trace so i can keep with what is happening?
I really appreciate a lot your help,
Thanks again
Posted by: dpellon@gmail.com
| Reply via web post | • | Reply to sender | • | Reply to group | • | Start a New Topic | • | Messages in this topic (7) |
This group is for the discussion between users only.
This is *NOT* technical support channel.
TO GET TECHNICAL SUPPORT send an e-mail directly to
SUPPORT {at} amibroker.com
TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
http://www.amibroker.com/feedback/
(submissions sent via other channels won't be considered)
For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/
EmoticonEmoticon