Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community. It's free for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
I've tried everything I can think of. And It just don't make since that you can not place a order at the time the condition is met. WHY do programmers make it so you have to wait til Close of the current bar or Open of next bar, by that time you have lost
Anyone know how to solve this?
Can you help answer these questions from other members on NexusFi?
I'm with you though; I think Easylanguage sucks big time! It makes you jump through hoops to do things that should be simple to do. I don't understand why that is so.
Well with EasyLanguage it does not work. Is there another platform that it will, and does that platform allow you to have a 5,10,15,30 second time frame
If (BarStatus(1) = 2) and Close[0] > Open[0] Then begin
Value1 = 1;
end;
inputs:
LECondition( Close > Open ) [DisplayName = "LECondition", ToolTip =
"Long Entry Condition. Enter an EasyLanguage expression. When expression is true, the strategy will buy."];
if (BarStatus(1) = 2) and // only submit orders at the close of the bar
(MarketPosition = 0) and Value1 = 1 {inside bar} Then Begin
Buy ( !( "TLX" ) ) 10 Shares at next Bar CurrentBid or Higher;
end;
Computers generally do what they're told - in this case with IntrabarOrderGeneration enabled, "next bar" is actually "next tick". You're checking for the end of the current bar with "BarStatus(1) = 2" which is fine though my guess is that it's simply waiting to enter whenever the next tick kicks in at the start of the NEXT bar (which could be "immediately" or a LONG time depending on how volatile the security is at the moment).
My .02 - what bar type are you using? (time-based, range, tick, Renko, etc.)
My ultimate goal would be to Buy as soon as a Bar turned Green and Sell as soon as a Bar turned Red
The Software is able to do it, why can we not tie into the software's logic?
When I watch a chart. Depending on the time of a bar, most bars stay either Green or Red, from beginning to end of bar.