NexusFi: Find Your Edge


Home Menu

 





abort startegy


Discussion in EasyLanguage Programming

Updated
      Top Posters
    1. looks_one ssber with 3 posts (0 thanks)
    2. looks_two sam028 with 1 posts (0 thanks)
    3. looks_3 Bimi with 1 posts (0 thanks)
    4. looks_4 Quick Summary with 1 posts (0 thanks)
    1. trending_up 2,298 views
    2. thumb_up 0 thanks given
    3. group 3 followers
    1. forum 5 posts
    2. attach_file 0 attachments




 
Search this Thread
  #1 (permalink)
 ssber 
Mallorca, Spain.
 
Experience: Beginner
Platform: NinjaTrader
Trading: CL
Posts: 40 since Apr 2012
Thanks Given: 45
Thanks Received: 30

Hi,

this is really simple question, but I can't find the answer:

Is there a way to abrort a strategy, something like "return","exit ","endsub" or whatever.

Is the only way not having to write a million if then else.

Thanks.


Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
$12M Ceasefire Contract Goes Disputed as Bandar Abbas St …
Prediction Markets & Event Contracts
Irans Answer Due Today: Peace Surges to 33.5%, Invasion …
Prediction Markets & Event Contracts
Roland Garros Final Day: $3M on Zverev at 80.5% -- Leban …
Prediction Markets & Event Contracts
Trump Lands in Beijing on CPI Day: Iran Peace Expires To …
Prediction Markets & Event Contracts
Beijing Summit Closes: Xi Pledges Hormuz Help -- $1.14B …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
NexusFi site changelog and issues/problem reporting
15 thanks
Darmok and Jalad at Tanagra
3 thanks
Big Mike in Ecuador
1 thanks
30 Sessions
1 thanks
  #3 (permalink)
 
sam028's Avatar
 sam028 
Site Moderator
 
Posts: 3,759 since Jun 2009
Thanks Given: 3,828
Thanks Received: 4,648


Simply use a boolean, which will be set to false when you want to stop the strategy.
Not a million of if needed.


Success requires no deodorant! (Sun Tzu)
Reply With Quote
  #4 (permalink)
 ssber 
Mallorca, Spain.
 
Experience: Beginner
Platform: NinjaTrader
Trading: CL
Posts: 40 since Apr 2012
Thanks Given: 45
Thanks Received: 30

hi, I know I can do this, I was only wondering if there was a return . bye


Started this thread Reply With Quote
  #5 (permalink)
Bimi
London
 
Posts: 118 since Mar 2010
Thanks Given: 42
Thanks Received: 58


ssber View Post
hi, I know I can do this, I was only wondering if there was a return . bye

why don't you just look up the keywords dictionary for "return"?


Reply With Quote
  #6 (permalink)
 ssber 
Mallorca, Spain.
 
Experience: Beginner
Platform: NinjaTrader
Trading: CL
Posts: 40 since Apr 2012
Thanks Given: 45
Thanks Received: 30


Bimi View Post
why don't you just look up the keywords dictionary for "return"?

I did.


Started this thread Reply With Quote




Last Updated on November 22, 2012


© 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