NexusFi: Find Your Edge


Home Menu

 





If Equity positive then..


Discussion in EasyLanguage Programming

Updated
    1. trending_up 3,785 views
    2. thumb_up 0 thanks given
    3. group 2 followers
    1. forum 12 posts
    2. attach_file 0 attachments




 
Search this Thread

If Equity positive then..

  #1 (permalink)
 robz75 
baltimore md/usa
 
Experience: Beginner
Platform: TradeStation
Trading: Futures
Posts: 16 since Jul 2014
Thanks Given: 0
Thanks Received: 0

Hello folks, Having trouble trying to use ATR trailing stop in conjunction with a hard stop. Looking for some code that will say "if equity positive on current trade then use ATR trailing stop.If equity negative on current trade then use hard stop.


Another thought would be to say if trade is x number of emini points higher than where I bought then use ATR, If not then use hard stop. This might be the better way to go..

Right now I am using setpercenttraling which I don't think is reliable in back testing and need to move this to an ATR type of trailing stop.

Thank you for your time

Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Better Renko Gaps
The Elite Circle
Are there any eval firms that allow you to sink to your …
Traders Hideout
NexusFi Journal Challenge - April 2024
Feedback and Announcements
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
The space time continuum and the dynamics of a financial …
Emini and Emicro Index
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Get funded firms 2023/2024 - Any recommendations or word …
61 thanks
Funded Trader platforms
39 thanks
NexusFi site changelog and issues/problem reporting
26 thanks
GFIs1 1 DAX trade per day journal
18 thanks
The Program
18 thanks
  #3 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,431 since Apr 2013
Thanks Given: 481
Thanks Received: 1,623


robz75,

what code have you written so far that gives you the trouble? If you post is I am sure someone is able to steer you into the right direction.
What makes you think setpercenttrailing is not reliable in backtesting and why would the ATR not be affected by the exact same thing then?

Regards,
ABCTG


robz75 View Post
Hello folks, Having trouble trying to use ATR trailing stop in conjunction with a hard stop. Looking for some code that will say "if equity positive on current trade then use ATR trailing stop.If equity negative on current trade then use hard stop.


Another thought would be to say if trade is x number of emini points higher than where I bought then use ATR, If not then use hard stop. This might be the better way to go..

Right now I am using setpercenttraling which I don't think is reliable in back testing and need to move this to an ATR type of trailing stop.

Thank you for your time


Follow me on Twitter Reply With Quote
  #4 (permalink)
 robz75 
baltimore md/usa
 
Experience: Beginner
Platform: TradeStation
Trading: Futures
Posts: 16 since Jul 2014
Thanks Given: 0
Thanks Received: 0


ABCTG View Post
robz75,

what code have you written so far that gives you the trouble? If you post is I am sure someone is able to steer you into the right direction.
What makes you think setpercenttrailing is not reliable in backtesting and why would the ATR not be affected by the exact same thing then?

Regards,
ABCTG

I am working with a developer who has won the futures championship a number of times. He has some concerns about setpercent trailing. What he had me do was to use on my 60 bar chart the 1 min LIBB.This does reduce the net profit by more than half. I guess that is what it is.My what my concern is that I could be leaving profit on the table and from what some of my back testing has shown me is that the ATR trailing helps with that.Give me a higher net profit per trade.

Also on the tradestaion site there are a number of posts from tradestation saying it is not the best thing to use.

Started this thread Reply With Quote
  #5 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,431 since Apr 2013
Thanks Given: 481
Thanks Received: 1,623

Yes, in my opinion you should always use the LIBB feature in backtesting with the highest granularity possible (unless your strategy won't be affected by that, but when you use the build in reserved words for profit and stops the results without LIBB are almost always too good and not accurate) as this will help you quickly rule out backtesting fallacies that are caused by wrong platform assumptions.
Depending on your implementation of the ATR and the bar status when you take/exit trades using LIBB might be a good idea there, too.

Regards,
ABCTG


robz75 View Post
I am working with a developer who has won the futures championship a number of times. He has some concerns about setpercent trailing. What he had me do was to use on my 60 bar chart the 1 min LIBB.This does reduce the net profit by more than half. I guess that is what it is.My what my concern is that I could be leaving profit on the table and from what some of my back testing has shown me is that the ATR trailing helps with that.Give me a higher net profit per trade.

Also on the tradestaion site there are a number of posts from tradestation saying it is not the best thing to use.


Follow me on Twitter Reply With Quote
  #6 (permalink)
 robz75 
baltimore md/usa
 
Experience: Beginner
Platform: TradeStation
Trading: Futures
Posts: 16 since Jul 2014
Thanks Given: 0
Thanks Received: 0

Thank you sir.Any thoughts about getting ATR to work as I mentioned in the first message?

Started this thread Reply With Quote
  #7 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,431 since Apr 2013
Thanks Given: 481
Thanks Received: 1,623

robz75,

like I wrote I would need to see the code that you wrote so far for the ATR and that is giving you the trouble to be able to steer you into the right direction. Did you look into the reserved word openpositionprofit for example?

Regards,
ABCTG



robz75 View Post
Thank you sir.Any thoughts about getting ATR to work as I mentioned in the first message?


Follow me on Twitter Reply With Quote
  #8 (permalink)
 robz75 
baltimore md/usa
 
Experience: Beginner
Platform: TradeStation
Trading: Futures
Posts: 16 since Jul 2014
Thanks Given: 0
Thanks Received: 0

yes I have played with that a bit(openpositionprofit) but prob need to look into it further.Let me put the code together for the ATR and send it to you

Started this thread Reply With Quote
  #9 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,431 since Apr 2013
Thanks Given: 481
Thanks Received: 1,623

robz75,

please post it in here, so others can learn from it, too.

Regards,
ABCTG


robz75 View Post
yes I have played with that a bit(openpositionprofit) but prob need to look into it further.Let me put the code together for the ATR and send it to you


Follow me on Twitter Reply With Quote
  #10 (permalink)
 robz75 
baltimore md/usa
 
Experience: Beginner
Platform: TradeStation
Trading: Futures
Posts: 16 since Jul 2014
Thanks Given: 0
Thanks Received: 0


I am just worried about posting the entire strategy on this site. I just opened up the canned ATR trailstop in TS.Any thoughts on how to do what it mentions on the notes below?


NOTE: This is not a strict trailing stop because the stop can actually loosen
sometimes instead of always tightening. To convert to a strict trailing stop,
ATRCalc should be fixed at the entry-bar for each position.

Started this thread Reply With Quote




Last Updated on September 15, 2014


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts