[Attachment(s) from Aron Pipa included below]
You are welcome, and you need to be careful with the entry prices in situations like this ( order #1 and order #4 )
.....
if( High [i] > order [n] )
{
Buy [i] = sigScaleIn;
BuyPrice [i] = Max ( Open [i] , order [n] );
count ++;
order[n] = 0; // executed
}
On 3/16/2016 11:33 AM, pmxgs0@gmail.com [amibroker] wrote:
Hello Aron,
thanks a very much for your help!
It's a great starting point for what I want to do.
I was over-complicating things and you coded it perfectly!
The use of the array subscript to keep track of the orders is great. I had never thought of using it except for identifying bar number.
thanks again
Regards,pm
__._,_.___
Attachment(s) from Aron Pipa | View attachments on the web
1 of 1 Photo(s)
Posted by: Aron Pipa <aron@myafl.com>
Reply via web post | • | Reply to sender | • | Reply to group | • | Start a New Topic | • | Messages in this topic (0) |
Save time and get your email on the go with the Yahoo Mail App
Get the beautifully designed, lighting fast, and easy-to-use, Yahoo Mail app today. Now you can access all your inboxes (Gmail, Outlook, AOL and more) in one place. Never delete an email again with 1000GB of free cloud storage.
**** IMPORTANT PLEASE READ ****
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/
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