[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[amibroker] Problems with stop



PureBytes Links

Trading Reference Links

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

*********************************




Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___