NexusFi: Find Your Edge


Home Menu

 





Position Management


Discussion in Platforms and Indicators

Updated
    1. trending_up 1,792 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)
sunsun
hong kong
 
Posts: 6 since May 2013
Thanks Given: 1
Thanks Received: 1

Hi, I am trying to set trailing stops for individual position but I could not find any keyword related to position management.

I would like to set a trailing stop loss when the open position profit is greater than a certain amount. Any amount less than the floating profit will not activate the trailing stop.

The idea should be as follows,

if (openpositionprofit > 5000) then ApplyStop(2,2,trailingpoint,1,False,0);

I wonder if there is such keyword as openpositionprofit, or similar

Also, I am wondering if I can separate the stop losses and trailing stops for long and short positions, as in some cases, they may need different parameters.

If someone is familiar with keywords in amibroker, please educate me if the below keywords are available in amibroker

- last buy entryprice (or current position entry price)
- last short entryprice
- islongshort ( 1 if long, -1 if short)
- isflat (1 if there is current position, 0 if flat)


Reply With Quote

Can you help answer these questions
from other members on NexusFi?
S&P 500 Holds the Line: No Fast Track for SpaceX, Op …
Stocks and ETFs
Warsh Drops Easing Bias, December Hike Now Above 50% -- …
Prediction Markets & Event Contracts
April 2026 Jobs Report: +115k vs +65k Expected
Traders Hideout
Without Pulisic, USA 61.5% Live vs. Australia -- France …
Prediction Markets & Event Contracts
UCL Final Kicks Off at Noon ET: PSG at 56.5% as Iran May …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
NexusFi site changelog and issues/problem reporting
8 thanks
Darmok and Jalad at Tanagra
1 thanks
  #2 (permalink)
colion
Asheville, North Carolina
 
Posts: 24 since Sep 2010
Thanks Given: 1
Thanks Received: 15


sunsun View Post

If someone is familiar with keywords in amibroker, please educate me if the below keywords are available in amibroker

You can find all keywords and functions in the Users Guide, under Help, and at amibroker.com


Reply With Quote




Last Updated on March 11, 2015


© 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