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 am new to EasyLanguage, I have some logic that determines when to long (as below), and would like to also place the entry price at that bar (since order label cannot be dynamic).
However, the text is placed on every bar after the condition is true, which makes me really puzzled
Order is not entered multiple times though.
Is that because my max position is 1?
Or somehow because Text_New is a series function?
Sorry if this sounds very primitive.
Thanks!
if Close crosses over UpperBand then
Buy ( "SVE Vol LE" ) next bar market ;
Value2 = Text_New(Date, Time, Low, NumToStr(EntryPrice, 0));
Can you help answer these questions from other members on NexusFi?
this is because the way your code is currently you allow for text printing on every bar. The condition is only valid for the long entry.
You need to slightly modify your code to
You will probably notice two things now:
1. the text will be printed every time the Close crosses over the Upperband. Depending on how many entries you allow in the same position that could mean more text than entries.
2. The text might not reflect the correct entry price as it is drawn when the order is send (meaning at this moment there is no way to know the exact entry price already).
To overcome both issues you could simply move the text drawing to another condition, which could either be a change in the Marketposition or a change in the number of shares/contracts that are currently open.