NexusFi: Find Your Edge


Home Menu

 





Setting Session / Signal Time Code for an Indicator


Discussion in EasyLanguage Programming

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




 
Search this Thread

Setting Session / Signal Time Code for an Indicator

  #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?
New Micros: Ultra 10-Year & Ultra T-Bond -- Live Now
Treasury Notes and Bonds
Exit Strategy
NinjaTrader
Futures True Range Report
The Elite Circle
Better Renko Gaps
The Elite Circle
My NT8 Volume Profile Split by Asian/Euro/Open
NinjaTrader
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Get funded firms 2023/2024 - Any recommendations or word …
61 thanks
Funded Trader platforms
39 thanks
Battlestations: Show us your trading desks!
26 thanks
NexusFi site changelog and issues/problem reporting
26 thanks
The Program
18 thanks




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