NexusFi: Find Your Edge


Home Menu

 





Stop Loss activated with Profit Floor


Discussion in EasyLanguage Programming

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




 
Search this Thread

Stop Loss activated with Profit Floor

  #1 (permalink)
 meeerkat 
Miami, FL
 
Experience: Intermediate
Trading: ES, CL
Posts: 4 since Feb 2019
Thanks Given: 6
Thanks Received: 4

For some reason I just can't figure out how to code this. I know you can easily have a Breakeven Stop or Trailing Stop with a profit floor, but how can I code a strategy that sets a stop loss a certain fixed amount *above* the entry price once a profit floor is reached? For example, let's say the floor amount is $0.20 and the stop is $0.10 above entry, it goes long at $2.00, once the price reaches $2.20, a stop is automatically placed at $2.10.

Any help is appreciated. Thanks!

Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
MC PL editor upgrade
MultiCharts
Cheap historycal L1 data for stocks
Stocks and ETFs
Strategy stop orders partially filled
EasyLanguage Programming
ZombieSqueeze
Platforms and Indicators
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Just another trading journal: PA, Wyckoff & Trends
25 thanks
What is Markets Chat (markets.chat) real-time trading ro …
17 thanks
ApexTraderFunding.com experience and review
15 thanks
GFIs1 1 DAX trade per day journal
13 thanks
EG Indicators
11 thanks
  #3 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,436 since Apr 2013
Thanks Given: 482
Thanks Received: 1,629


meeerkat,

the best way to accomplish this might be to use a regular stop order at a specific price that you only issue within your code and not rely on any of the built-in exits for that. When the profit of your position reaches a specific price/value from the entry, you would issue the stop order.

Regards,

ABCTG

Follow me on Twitter Reply With Quote




Last Updated on April 22, 2019


© 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