NexusFi: Find Your Edge


Home Menu

 





Setting Session / Signal Time Code for an Indicator


Discussion in EasyLanguage Programming

Updated
    1. trending_up 1,579 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?
Pakistan Mediator in Tehran as Hormuz Normalization Coll …
Prediction Markets & Event Contracts
Iran Update May 8: Still Reviewing MOU, Demands Reparati …
Traders Hideout
Iran Airspace Collapses 18 Points to 15.5% While Hormuz …
Prediction Markets & Event Contracts
April 2026 Jobs Report: +115k vs +65k Expected
Traders Hideout
Wood Mackenzie Drops $200 Oil Forecast -- Airspace Expir …
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




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