PureBytes Links
Trading Reference Links
|
Although that may stop the problem that is not a solution in this case. I
need there to be a buy signal every day that the condition is meet. I'm not
really good at explaining it but with the exrem function I will only see the
first buy signal and I need all of them for the code.
Paul
-----Original Message-----
From: relentless1000 [mailto:cgmv@xxxxxxxxxxxxx]
Sent: March 10, 2004 11:57
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] Re: Applystop problem
I'm pretty new to AFL, so you may have already tried this.
What if you add EXREM under your buy/sell conditions as follows:
buy= buy condition;
sell=sell condtion;
buy=EXREM(BUY,SELL);
sell=EXREM(SELL,BUY);
I think this will keep the system from putting on new positions while
still in a trade. Like I said you may have already tried this.
GV
--- In amibroker@xxxxxxxxxxxxxxx, "WALEDINGO" <dingo@xxxx> wrote:
> Please let us know what it was.
>
> d
>
>
> _____
>
> From: Paul Binnell [mailto:Paul@x...]
> Sent: Tuesday, March 09, 2004 4:21 PM
> To: amibroker@xxxxxxxxxxxxxxx
> Subject: RE: [amibroker] Applystop problem
>
>
> I have tried both setting for the "Allow Same Bar Exit". I will
have to
> send a message support.
>
> Thanx for the help
> Paul.
>
> -----Original Message-----
> From: dingo [mailto:dingo@x...] On Behalf Of dingo
> Sent: March 9, 2004 21:42
> To: amibroker@xxxxxxxxxxxxxxx
> Subject: RE: [amibroker] Applystop problem
>
>
> are you using eod data?
>
> What is the setting for "Allow Same Bar Exit"? You might try
changing that.
>
> Otherwise send a msg to support@xxxx
>
> d
>
>
> _____
>
> From: Paul Binnell [mailto:Paul@x...]
> Sent: Tuesday, March 09, 2004 3:28 PM
> To: amibroker@xxxxxxxxxxxxxxx
> Subject: RE: [amibroker] Applystop problem
>
>
> I ran the code with the Equity(1) placed right after the applystop
but that
> did not effect it. The test code is at the bottom of the e-mail.
I even
> have the entry delay set to 1 but that only stops me from re-
entering the
> same ticker. Any other ideas would be appreciated.
>
> -----Original Message-----
> From: dingo [mailto:dingo@x...]
> Sent: March 9, 2004 19:26
> To: amibroker@xxxxxxxxxxxxxxx
> Subject: RE: [amibroker] Applystop problem
>
>
> Try putting Equity(1); right below your applystop.
>
> d
>
>
> _____
>
> From: Paul Binnell [mailto:Paul@x...]
> Sent: Tuesday, March 09, 2004 1:20 PM
> To: amibroker@xxxxxxxxxxxxxxx
> Subject: [amibroker] Applystop problem
>
>
>
> I have an issue with the applystop function. I have searched
the
> archives but do not seem to be able to find a solution and I'm sure
I have
> seen mention of this before. This piece of test code when run
shows trades
> that are entered before the last one is exited. This occurs when
the stop
> is hit intra day. I have set my trade time to open.
>
> I followed the setting mentioned in the help for applystop which
follows
>
> ActivateStopsImmediately turned ON
> ExitAtStop = 1
> Trade delays set to one
> Trade price set to open
>
> But I still get this problem. Does anyone know a solution?
>
>
>
> Thanx
>
> Paul
>
> //------------------------------------------------------------------
--------
> -----------------------------------------
> rScore = close / ref(close,-1);
>
>
> //Set Trade Delays and Initial Equity
> SetOption("InitialEquity", 1000000);
> SetTradeDelays(1,1,1,1);
> SetOption("MinShares",100);
> MaxPos = 1;
> SetOption("MaxOpenPositions",MaxPos);
> PositionSize = -100/MaxPos;
> RoundLotSize = 100;
>
> //Scoring Routine Begins
> PositionScore = rScore;
> Buy = Close > ref(close,-1);
> Sell = Close < ref(close,-1);
>
>
> ApplyStop(stopTypeProfit,stopModePercent,10,1,False,1);
> //------------------------------------------------------------------
--------
> -----------------------------------------
>
>
>
>
> Send BUG REPORTS to bugs@xxxx
> Send SUGGESTIONS to suggest@xxxx
> -----------------------------------------
> Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx
> (Web page: http://groups.yahoo.com/group/amiquote/messages/)
> --------------------------------------------
> Check group FAQ at:
> http://groups.yahoo.com/group/amibroker/files/groupfaq.html
>
>
>
> Send BUG REPORTS to bugs@xxxx
> Send SUGGESTIONS to suggest@xxxx
> -----------------------------------------
> Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx
> (Web page: http://groups.yahoo.com/group/amiquote/messages/)
> --------------------------------------------
> Check group FAQ at:
> http://groups.yahoo.com/group/amibroker/files/groupfaq.html
>
>
>
>
>
>
> Send BUG REPORTS to bugs@xxxx
> Send SUGGESTIONS to suggest@xxxx
> -----------------------------------------
> Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx
> (Web page: http://groups.yahoo.com/group/amiquote/messages/)
> --------------------------------------------
> Check group FAQ at:
> http://groups.yahoo.com/group/amibroker/files/groupfaq.html
>
>
>
> Send BUG REPORTS to bugs@xxxx
> Send SUGGESTIONS to suggest@xxxx
> -----------------------------------------
> Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx
> (Web page: http://groups.yahoo.com/group/amiquote/messages/)
> --------------------------------------------
> Check group FAQ at:
> http://groups.yahoo.com/group/amibroker/files/groupfaq.html
>
>
>
>
>
>
> Send BUG REPORTS to bugs@xxxx
> Send SUGGESTIONS to suggest@xxxx
> -----------------------------------------
> Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx
> (Web page: http://groups.yahoo.com/group/amiquote/messages/)
> --------------------------------------------
> Check group FAQ at:
> http://groups.yahoo.com/group/amibroker/files/groupfaq.html
>
>
>
> _____
>
> Yahoo! Groups Links
>
>
> * To visit your group on the web, go to:
> http://groups.yahoo.com/group/amibroker/
>
>
> * To unsubscribe from this group, send an email to:
> amibroker-unsubscribe@xxxxxxxxxxxxxxx
> <mailto:amibroker-unsubscribe@xxxxxxxxxxxxxxx?subject=Unsubscribe>
>
>
> * Your use of Yahoo! Groups is subject to the Yahoo! Terms of
Service
> <http://docs.yahoo.com/info/terms/> .
Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at:
http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Yahoo! Groups Links
Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/amibroker/
<*> To unsubscribe from this group, send an email to:
amibroker-unsubscribe@xxxxxxxxxxxxxxx
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|