NexusFi: Find Your Edge


Home Menu

 





Position Management


Discussion in Platforms and Indicators

Updated
    1. trending_up 1,847 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?
Would a node-based workflow for automated trading be useful?
Traders Hideout
Trump Media to sell instant access to market-moving soci …
Traders Hideout
Warsh Drops Easing Bias, December Hike Now Above 50% -- …
Prediction Markets & Event Contracts
Thanks Mike. Godspeed.
The Elite Circle
Ninjatrader users - good CONNECTIONs post and article fr …
NinjaTrader
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Want your NinjaTrader indicator created, free?
5 thanks
Afternoon-close session
1 thanks
Franks Trading Journey
1 thanks
Denied 20K payouts: Alpha Futures
1 thanks
FootPrintV2 Chart for NT8
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