Stop all trading for day after 1 condition is met once. - futures io
futures io futures trading



Stop all trading for day after 1 condition is met once.


Discussion in EasyLanguage Programming

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




Welcome to futures io: the largest futures trading community on the planet, with well over 125,000 members
  • Genuine reviews from real traders, not fake reviews from stealth vendors
  • Quality education from leading professional traders
  • We are a friendly, helpful, and positive community
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts
  • We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community.  It's free and simple.

-- Big Mike, Site Administrator

(If you already have an account, login at the top of the page)

 
Search this Thread
 

Stop all trading for day after 1 condition is met once.

(login for full post details)
  #1 (permalink)
Scotland
 
 
Posts: 27 since May 2019
Thanks: 11 given, 3 received

Hi I am looking to stop all automated trading when a condition is met.

The condition typically only occurs once and then reverts back to the original state so I'm having trouble keeping trading stopped.

Condition1 = AvgTrueRange(1) >= 0.015;

Refers to one bar back.

How would I set this condition to continue being true after it has occured? Allowing for the creation of a statement to stop all trading for the day.

Reply With Quote

Can you help answer these questions
from other members on futures io?
Can the Magnet Tool Affect Chart Orders In Overcharts Ha …
Platforms and Indicators
Webinar: Finding your own way in trading w/Adam Grimes
The Elite Circle
NT8 indicator to simulate a Funding Evaluation where to …
NinjaTrader
OFA (Order Flow Analytics) Licence
NinjaTrader
Short Interest Ratio indicator?
ThinkOrSwim
 
 
(login for full post details)
  #3 (permalink)
 
 
Posts: 2,230 since Apr 2013
Thanks: 409 given, 1,471 received


Edwin Lefevre,

you could use an if...then statement to set your Boolean variable to true. Then you can use another if... then statement to set it to back to false - for example on a new day.

Regards,

ABCTG


Edwin Lefevre View Post
Hi I am looking to stop all automated trading when a condition is met.

The condition typically only occurs once and then reverts back to the original state so I'm having trouble keeping trading stopped.

Condition1 = AvgTrueRange(1) >= 0.015;

Refers to one bar back.

How would I set this condition to continue being true after it has occured? Allowing for the creation of a statement to stop all trading for the day.


Follow me on Twitter Reply With Quote
The following user says Thank You to ABCTG for this post:
 
(login for full post details)
  #4 (permalink)
Scotland
 
 
Posts: 27 since May 2019
Thanks: 11 given, 3 received


ABCTG View Post
Edwin Lefevre,

you could use an if...then statement to set your Boolean variable to true. Then you can use another if... then statement to set it to back to false - for example on a new day.

Regards,

ABCTG

Thanks ABC

I came up with this, and it seems to be working:

if avgtruerange(1) >= 0.015 then
volatility_stop = true;

if volatility_stop = true and time > 1705 and date > date[1] then
volatility_stop = false;

Reply With Quote


futures io Trading Community Platforms and Indicators EasyLanguage Programming > Stop all trading for day after 1 condition is met once.


Last Updated on January 8, 2020


Upcoming Webinars and Events
 

NinjaTrader Indicator Challenge!

Ongoing
 

Battlestations! Show us your trading desk - $1,500 in prizes!

March
 

Importance of Finding Your Own Way w/Adam Grimes

Elite only
 

Journal Challenge w/Jigsaw

April
     



Copyright © 2021 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, info@futures.io
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.
no new posts