NexusFi: Find Your Edge


Home Menu

 





Questions re the "built-in" trailing stop commands


Discussion in EasyLanguage Programming

Updated
    1. trending_up 903 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?
requesting .nrd replay files from 2026 spy and qqq
The Elite Circle
EA
Platforms and Indicators
[WTS] ATAS Lifetime ULTRA license – EU buyers only – …
Platforms and Indicators
No book, only a stair: journaling fills where price move …
Cryptocurrency
I developed a free AI-powered (Kronos) forecasting indic …
The Elite Circle
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Would you consider buying or leasing an algo?
6 thanks
Trading Journal (Neural Network Production Pipeline Mode …
4 thanks
Trading psychology articles
4 thanks
Big Mike in Ecuador
3 thanks
The Scalpers Journey
2 thanks
  #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