NexusFi: Find Your Edge


Home Menu

 





How to keep the condition once the event occured


Discussion in EasyLanguage Programming

Updated
    1. trending_up 42 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)
 
Small Dog's Avatar
 Small Dog 
Sydney NSW Australia
 
Experience: Intermediate
Platform: TradeStation, Oanda
Trading: Forex, index futures
Frequency: Daily
Duration: Days
Posts: 173 since Jun 2020
Thanks Given: 15
Thanks Received: 163

How to I keep the variable once an event occurred? For example, once RSI becomes overbought, I want the condition1 = true, and then look for breakouts.

A simple "if RSI (close, 14) < 30 then condition1 = true" doesn't work, because in the next several bars it can move above 30, while the breakout I want hasn't happened.
How do I keep the condition or a variable the same once it occurred, even if it changes in the next several bars?

Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
MC Advanced Simulated Trading.
MultiCharts
Pivot Indicator based on Level2 data
NinjaTrader
Has anyone taken The Confident Trader course from aheadc …
Trading Reviews and Vendors
is there a better Trade Performance tool for NinjaTrader?
NinjaTrader
Radarscreen
TradeStation
 
  #2 (permalink)
 
SMCJB's Avatar
 SMCJB 
Houston TX
Legendary Market Wizard
 
Experience: Advanced
Platform: TT Stellar & Tradestation
Broker: Primarily Advantage Futures
Trading: Primarily Energy but also a little Equities, Fixed Income, Metals, U308 and Crypto.
Frequency: Many times daily
Duration: Never
Posts: 5,060 since Dec 2013
Thanks Given: 4,410
Thanks Received: 10,226


Small Dog View Post
How to I keep the variable once an event occurred? For example, once RSI becomes overbought, I want the condition1 = true, and then look for breakouts.

A simple "if RSI (close, 14) < 30 then condition1 = true" doesn't work, because in the next several bars it can move above 30, while the breakout I want hasn't happened.
How do I keep the condition or a variable the same once it occurred, even if it changes in the next several bars?

Surely it can only change back if you change it back (or reset it)?

Reply With Quote




Last Updated on June 30, 2024


© 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 - Sitemap - Downloads - Top
no new posts