NexusFi: Find Your Edge


Home Menu

 





Questions re the "built-in" trailing stop commands


Discussion in EasyLanguage Programming

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




 
Search this Thread

Questions re the "built-in" trailing stop commands

  #1 (permalink)
shawnh
Maritimes, Canada
 
Posts: 9 since Nov 2010
Thanks Given: 0
Thanks Received: 1

Hello to all... with "SetDollarTrailing", does anyone know if it's possible (a workaround?) to set a "floor" amount that must be reached before it gets activated - similar to the "SetPercentTrailing" command?

And speaking of "SetPercentTrailing", please consider this little example - I am trading the Dow emini (YM) and in my long position (1 contract) I currently have a MaxPositionProfit of say, $210 (ie. 42 points). Lets say I have a 10% trailing stop using SetPercentTrailing, this will set my stop at $21 below the high price point. So at $5 per point on the Dow Emini, this is $21 divided by 5, equals 4.2 points. Does the SetPercentTrailing command internally "round" this value up or down? In other words, will my stop be placed 4 points below the high, or 5 points below the high?


Thanks!
Shawn

Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Cheap historycal L1 data for stocks
Stocks and ETFs
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
REcommedations for programming help
Sierra Chart
About a successful futures trader who didnt know anythin …
Psychology and Money Management
ZombieSqueeze
Platforms and Indicators
 
  #2 (permalink)
 bfulks 
Boston MA
 
Experience: Advanced
Platform: TradeStation
Trading: Stocks and options
Posts: 24 since Aug 2022
Thanks Given: 2
Thanks Received: 4

The easiest way to find the solution to these kind of questions is to try it and see what it does.

Add a few print statements to print the values of the various variables at the buy and sell points.

You can then try several variations quickly and find something that works the way you want.

Reply With Quote




Last Updated on May 27, 2023


© 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