PureBytes Links
Trading Reference Links
|
As you have it, "stop" should only change when there is a new buy
signal. Unless you have a buy signal at every bar, then it should not
change at every bar.
I don't know your intention with this code, but note that "stop" is a
single value, not an array.
Regards,
GP
--- In amibroker@xxxxxxxxxxxxxxx, faked <faked@xxx> wrote:
>
> Hi Group,
>
> I want to set my stop to low 1 bar before buy-signal.
> For example: If I use EOD and i get today a buy-signal, the stop shoud
> be set to the low from yesterday.
>
> for(i = 1; i < barcount; i++)
> {
> if ( Buy[i] )
> {
> stop = Low[ i-1 ];
> }
> }
>
> ....
>
> My problem is, every bar, my stop changes, but it should be stay at
> the same value.
>
> Thanks for help
> faked
>
------------------------------------
**** IMPORTANT ****
This group is for the discussion between users only.
This is *NOT* technical support channel.
*********************
TO GET TECHNICAL SUPPORT from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com
*********************
For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/
For other support material please check also:
http://www.amibroker.com/support.html
*********************************
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/amibroker/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/amibroker/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:amibroker-digest@xxxxxxxxxxxxxxx
mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx
<*> 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/
|