NexusFi: Find Your Edge


Home Menu

 





How to set stoploss daily, help needed


Discussion in EasyLanguage Programming

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




 
Search this Thread
  #1 (permalink)
Wakala
Madrid + Spain
 
Posts: 2 since Mar 2015
Thanks Given: 0
Thanks Received: 0

I have a strategy build in TS on a daily timeframe. I have a stoploss set with the "Setstoploss" command.

Problem:
An entry is triggered by the strategy and a day StopLoss is properly set for that day/bar.
My problem is that, if the position remains open for the next day, the previous SLoss dissapears (because it was a daily order) and the strategy is not generating a new Sloss for that day.

How can I fix this so that there is always a SLoss in place? I'm think of two possible ways:
1) Instruct somehow to TS to send an new SLoss everyday
2) Instruct TS to send the first SLoss as a GTC order.

Can anybody advise on which of these is better and how to code it?

Thank you


Reply With Quote

Can you help answer these questions
from other members on NexusFi?
The Ceasefire Curve: 2pct Peace by Next Week, 60pct by S …
Prediction Markets & Event Contracts
CFTC Workforce Shrinks 24% to 15-Year Low While Predicti …
Traders Hideout
Without Pulisic, USA 61.5% Live vs. Australia -- France …
Prediction Markets & Event Contracts
World Cup Opens: USA at 45.5% Tonight as Markets Push Ba …
Prediction Markets & Event Contracts
TradingView Deploys AI to Monitor SEC Filings in Real Ti …
TradingView
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Big Mike in Ecuador
197 thanks
Sober Journey With S&P
27 thanks
30 Sessions
20 thanks
BERN ALGOS algo trading journal
8 thanks
Volume Indicators
8 thanks
  #3 (permalink)
teamaker
Singapore+Singapore
 
Posts: 10 since Jun 2015
Thanks Given: 1
Thanks Received: 0


Have you tried to use program to calculate the stop lose for every open order ? for every tick received from the market, assume your program will be run at one time and the stop lose will be calculated. if the market price is below your stop lose, then you provide a instruction to close that order.


Reply With Quote




Last Updated on June 24, 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