NexusFi: Find Your Edge


Home Menu

 





Create a candle zone based on its HL


Discussion in ThinkOrSwim

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




 
Search this Thread

Create a candle zone based on its HL

  #1 (permalink)
 tprz 
New York, NY
 
Experience: Advanced
Platform: OEC, TOS
Trading: ES, 6E, CL
Posts: 3 since Jul 2012
Thanks Given: 0
Thanks Received: 0

I've been trying to create an indicator that would draw a candle zone based on its high and low (e.g. AddCloud, but not necessarily).
There would be a criteria to draw it only if such candle had the lowest volume in last X bars.
Ideally if such zone would end at the end of the session (or after specified by me time in options).

I will greatly appreciate if someone is willing to show me how to code it.
I coded some simple indicators, but I haven't figure this one out yet.

Thanks!

Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Is there a way to simulate CONTINUOUS CONTRACT?
NinjaTrader
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
Cheap historycal L1 data for stocks
Stocks and ETFs
MC PL editor upgrade
MultiCharts
Footprint for strategy Builder
NinjaTrader
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Funded Trader platforms
33 thanks
Spoo-nalysis ES e-mini futures S&P 500
16 thanks
GFIs1 1 DAX trade per day journal
15 thanks
The Trading Pit "Futures VIP" Account Journal
15 thanks
Trading with Intuition
14 thanks
  #2 (permalink)
 selnomeria 
Tbilisi + Georgia
 
Experience: None
Platform: ThinkScript,Tradestation
Trading: EUR/USD
Posts: 36 since Aug 2014
Thanks Given: 9
Thanks Received: 20

wow,strange... here solution, i've decided to do what you're asking..

Quoting 
input Showplott =yes;
def OpenHappened = secondsTillTime(0900) <= 0;
def CloseHappened = secondsTillTime(1600) <= 0;
def marketOpen = OpenHappened and !CloseHappened;


def HighStart= if marketOpen and !marketOpen[1] and (!IsNan(High)) then high else HighStart[1] ;
def LowStart = if marketOpen and !marketOpen[1] and (!IsNan(Low)) then low else LowStart[1];


def MarketClosedReturned1= if (Showplott AND MarketOpen, HighStart, double.nan);
def MarketClosedReturned2= if (Showplott AND MarketOpen, Lowstart , double.nan);
AddCloud(MarketClosedReturned1, MarketClosedReturned2 , Color.white, Color.plum);


Visit my NexusFi Trade Journal Reply With Quote




Last Updated on May 15, 2015


© 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