NexusFi: Find Your Edge


Home Menu

 





Questions re the "built-in" trailing stop commands


Discussion in EasyLanguage Programming

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




 
Search this Thread
  #1 (permalink)
shawnh
Montreal, Canada
 
Posts: 15 since Nov 2010
Thanks Given: 1
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?
May 26 Deadline Dies at 7.5% as US Strikes Iran During C …
Prediction Markets & Event Contracts
Trump Media to sell instant access to market-moving soci …
Traders Hideout
UCL Final Kicks Off at Noon ET: PSG at 56.5% as Iran May …
Prediction Markets & Event Contracts
Penalties in Budapest, Peace Deadline in Tehran: Arsenal …
Prediction Markets & Event Contracts
Four New E-mini Futures Launch June 29 -- Russell 3000, …
Emini and Emicro Index
 
  #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


© 2026 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 - Downloads - Top
no new posts