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

RE: [amibroker] Potting help please



PureBytes Links

Trading Reference Links




Assuming you have a buy and 
sell signals, try this
 
buybar = 
buy*barindex();//or any other signal condition
sellbar = 
sell*barindex();
Plot( 
iif(barindex()<buybar or barindex()>sellbar, null, hhv( C - 
TrailStopAmount, 10)) ,"StopLine",colorRed, styleThick);
 
 
Cheers,Graham<A 
href="">http://groups.msn.com/asxsharetrading<A 
href="">http://groups.msn.com/fmsaustralia 


  
  <FONT 
  face=Tahoma size=2>-----Original Message-----From: Keith Osborne 
  [mailto:traderkeith2000@xxxxxxxxxxxx] Sent: Saturday, 27 December 
  2003 8:58 AMTo: amibroker@xxxxxxxxxxxxxxxSubject: RE: 
  [amibroker] Potting help please
  Any 
  ideas how to modify this to allow trailing stop to commence on a particular 
  day's close? eg. if I had purchased AVJ @ $1.80 on November 12th how can I 
  start the trailing stop on that day at C - 3*ATR(10)?
  <FONT face=Arial color=#0000ff 
  size=2> 
  <FONT face=Arial color=#0000ff 
  size=2>TIA....Keith
  <FONT face=Arial color=#0000ff 
  size=2> 
  
    
    <FONT 
    face=Tahoma size=2>-----Original Message-----From: Graham 
    [mailto:gkavanagh@xxxxxxxxxxxxx] Sent: Saturday, 27 December 2003 
    10:13 AMTo: amibroker@xxxxxxxxxxxxxxxSubject: RE: 
    [amibroker] Potting help pleaseHere is an example 
    of one way to show it//Plot the Training Stop LinePlot( hhv( C - 
    TrailStopAmount, 10) ,"StopLine",colorRed, 
    styleThick);Cheers,Graham<A 
    href="">http://groups.msn.com/asxsharetrading<A 
    href="">http://groups.msn.com/fmsaustralia 
    -----Original Message-----From: gosub283 
    [mailto:gosub283@xxxxxxxxx] Sent: Saturday, 27 December 2003 3:28 
    AMTo: amibroker@xxxxxxxxxxxxxxxSubject: [amibroker] Potting help 
    pleaseHi,I am trying to plot a trailing stop 
    underthe price bars so that I can visually seewhere the stops are 
    triggering.My system uses the TrailStop() functionwhich apparently 
    adjusts upwards only on"UP" days but does not adjust on "Down" 
    days.I want to see this in action :-)Is it possible to plot an AFL 
    function value ?Can anyone help with this please.Here's what I have 
    so far....//Set the triling stop amount to 2 x 
    ATR(14)TrailStopAmount = 3* ATR(14);//Set the trailing stop to 3 
    time ATR()ApplyStop( 2, 2, TrailStopAmount, 1 );//Plot the price 
    dataPlot(Close,"ClosePrice", colorBlack, styleBar);//Plot the 
    Training Stop LinePlot( ??????? ,"StopLine",colorRed, 
    styleThick);Thanks,Gosub283Send 
    BUG REPORTS to bugs@xxxxxxxxxxxxxSend SUGGESTIONS to 
    suggest@xxxxxxxxxxxxx-----------------------------------------Post 
    AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx (Web page: 
    <A 
    href="">http://groups.yahoo.com/group/amiquote/messages/)--------------------------------------------Check 
    group FAQ at:<A 
    href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
    Yahoo! Groups LinksTo visit your group on the web, go 
    to:<A 
    href="">http://groups.yahoo.com/group/amibroker/To 
    unsubscribe from this group, send an email 
    to:amibroker-unsubscribe@xxxxxxxxxxxxxxxYour use of Yahoo! 
    Groups is subject to:  <A 
    href="">http://docs.yahoo.com/info/terms/ 
    Send BUG REPORTS to bugs@xxxxxxxxxxxxxSend 
    SUGGESTIONS to 
    suggest@xxxxxxxxxxxxx-----------------------------------------Post 
    AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx (Web page: 
    <A 
    href="">http://groups.yahoo.com/group/amiquote/messages/)--------------------------------------------Check 
    group FAQ at: <A 
    href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
    
    
    Yahoo! Groups Links
    
      To visit your group on the web, go to:<A 
      href="">http://groups.yahoo.com/group/amibroker/  

      To unsubscribe from this group, send an email to:<A 
      href="">amibroker-unsubscribe@xxxxxxxxxxxxxxx  

      Your use of Yahoo! Groups is subject to the <A 
      href="">Yahoo! Terms of Service. 
    Send BUG REPORTS to 
  bugs@xxxxxxxxxxxxxSend SUGGESTIONS to 
  suggest@xxxxxxxxxxxxx-----------------------------------------Post 
  AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx (Web page: <A 
  href="">http://groups.yahoo.com/group/amiquote/messages/)--------------------------------------------Check 
  group FAQ at: <A 
  href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
  
  
  Yahoo! Groups Links
  
    To visit your group on the web, go to:<A 
    href="">http://groups.yahoo.com/group/amibroker/  

    To unsubscribe from this group, send an email to:<A 
    href="">amibroker-unsubscribe@xxxxxxxxxxxxxxx  

    Your use of Yahoo! Groups is subject to the <A 
    href="">Yahoo! Terms of Service. 
  


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 Sponsor


  ADVERTISEMENT 









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 the Yahoo! Terms of Service.