NexusFi: Find Your Edge


Home Menu

 





EasyLanguage entry in active bar on previous bar's low


Discussion in EasyLanguage Programming

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




 
Search this Thread
  #1 (permalink)
tolu7325
Brno Czech Republic
 
Posts: 2 since Jul 2013
Thanks Given: 0
Thanks Received: 0

Hello guys I'd like to ask you to help me with following issue:

I'm trying to code an entry (daily timeframe) which will be generated during active bar/day at yesterday's price (high or low). The problem probably is, that the signal is valid AFTER new day's opening - I have IntraBarOrderGeneration=TRUE setting, however it doesn't help... see why:

This is what I have:

IntraBarOrderGeneration=TRUE;
Buy ( "long" ) this bar at low[1] stop; {<- I want to have BUY STOP order placed right after OPEN on previous bar's LOW, the OPEN is lower that previous LOW}

Unfortunately it return's error: 'Stop and limit orders can only be placed for the next bar' <-but I want to enter in active bar, not next one.

Please help me guys, it will be really appreciated!
Thank you


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
  #2 (permalink)
 
mengelbrecht's Avatar
 mengelbrecht 
copenhagen, denmark
 
Experience: Intermediate
Platform: multicharts, Ninja
Broker: IB & Kinetick
Trading: ES
Posts: 47 since Aug 2010
Thanks Given: 16
Thanks Received: 24


tolu7325 View Post
Hello guys I'd like to ask you to help me with following issue:

I'm trying to code an entry (daily timeframe) which will be generated during active bar/day at yesterday's price (high or low). The problem probably is, that the signal is valid AFTER new day's opening - I have IntraBarOrderGeneration=TRUE setting, however it doesn't help... see why:

This is what I have:

IntraBarOrderGeneration=TRUE;
Buy ( "long" ) this bar at low[1] stop; {<- I want to have BUY STOP order placed right after OPEN on previous bar's LOW, the OPEN is lower that previous LOW}

Unfortunately it return's error: 'Stop and limit orders can only be placed for the next bar' <-but I want to enter in active bar, not next one.

Please help me guys, it will be really appreciated!
Thank you


Hi
Have a look at this coding example from big mike



Big Mike is using a "limitprice" which is defined as lowest(low, 10) meaning the lowest of the previous 10 bars, replace 10 with 1 and you have the low of the previous bar

hope this helps

rgds
mengelbrecht


Reply With Quote
  #3 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,448 since Apr 2013
Thanks Given: 494
Thanks Received: 1,642


Hi tolu7325,

with intrabar order generation "next bar" will be the next tick, so you can use this.

Regards,
ABCTG



tolu7325 View Post
Hello guys I'd like to ask you to help me with following issue:

I'm trying to code an entry (daily timeframe) which will be generated during active bar/day at yesterday's price (high or low). The problem probably is, that the signal is valid AFTER new day's opening - I have IntraBarOrderGeneration=TRUE setting, however it doesn't help... see why:

This is what I have:

IntraBarOrderGeneration=TRUE;
Buy ( "long" ) this bar at low[1] stop; {<- I want to have BUY STOP order placed right after OPEN on previous bar's LOW, the OPEN is lower that previous LOW}

Unfortunately it return's error: 'Stop and limit orders can only be placed for the next bar' <-but I want to enter in active bar, not next one.

Please help me guys, it will be really appreciated!
Thank you


Follow me on X Reply With Quote
  #4 (permalink)
tolu7325
Brno Czech Republic
 
Posts: 2 since Jul 2013
Thanks Given: 0
Thanks Received: 0

Hello guys,

Thanks a lot for our tips!
Here is what works:

[IntrabarOrderGeneration = true]
if Open < low[1] then
Buy ( "Ops" ) next bar at low[1] stop;


Reply With Quote




Last Updated on July 29, 2013


© 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