NexusFi: Find Your Edge


Home Menu

 





Setting Session / Signal Time Code for an Indicator


Discussion in EasyLanguage Programming

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




 
Search this Thread
  #1 (permalink)
timothymhanna
Detroit, MI
 
Posts: 15 since Oct 2010
Thanks Given: 0
Thanks Received: 3

Hello,

I'm trying to code the following: Chart details exactly what I'm trying to capture.

1) If a current bar has a high higher than any bar from the start of today's session (18:00 EST) AND a close that is below the high from today's session (excluding this current bar setting the new high), plot a Bull Trap signal. What is the code for setting specific session times for the indicator?

When I change below code to HighD(0) to try to plot a break of current session's high, I don't get anything back..

As a test to see if anything would plot, I tried previous day's high; but my session times are not correct, as you see from the chart.

2) If the high today breaks previous day high but closes below, plot PDH Bull Trap. (I dont know how to get my session times to reflect starting at 18:00 EST to start a day's high. It calculates from midnight..)

Does anybody have an idea of how to code this properly? Below is my code for just having High > HighD(1)



If High > HighD(1)
then
begin
Plot1(High[0], "Bull Trap");
Value1= Text_New(Date, Time, High[1]+20,"Bull"+Newline+"Trap");
Text_SetColor(Value1, Red);
Alert;
end
else
NoPlot(1);{remove the market}

Value2 = HighD(1);
Plot2(Value2, "PDH");


Reply With Quote

Can you help answer these questions
from other members on NexusFi?
April 2026 Jobs Report: +115k vs +65k Expected
Traders Hideout
TradingView Deploys AI to Monitor SEC Filings in Real Ti …
TradingView
Netherlands & Germany Surge as World Cup Field Narro …
Prediction Markets & Event Contracts
Iran Forward Curve: June 30 at 56% vs June 15 at 28% -- …
Prediction Markets & Event Contracts
Orban at 29pct as Hungary Votes Tomorrow -- McIlroy Surg …
Prediction Markets & Event Contracts
 
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




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