OH! My God !!!!
Don't you know that BarCount -1 is always the current bar.:eek:
If you don't want to see the current bar, then use ref -1 and ref -2.
I don't use live data, I work on EOD, Writing code to help you, I can only show you the sample,
It is on your own initiative to solve problem...
The idea is to help new comer to get the code more easily and less problem required help because to face by the dump of using quote ...tag that faced all these while. nothing to do with perfect and perfectionist. These are habit that had to be cultivated.
When most of the code experts...
Is it ? I found that it like throwing rubbish.
A kind human being would do his best to use [CODE]...[\CODE] Tag,
[PHP]...[\PHP] ..around the program.
Those people pick up (by copy...paste) the rubblish and facing errors will keep asking help for the code expert here to fix the problem.
We only do free "Simple Coding Help" that don't affect much of our life, thing can be done in 1~2 hours, or some may ok to take 1~2 days.
If code expert want to do complicated MTQ4 conversion for you then the Effort is huge, then it better do some money compensation for their work.
See How confuse your condition setup given:
Buy=Buy1 Or Buy2;
And See what your need:
Need coding guidance to PressBuyButton which if pressed, should trigger a Buy signal on Chart/Scan/Explore as a Valid Buy condition and the Signal should Remain...
Since you asking to use without VarSet/VarGet,
and you want to capture M3 and M4 and M5 that Bull Candle at the same time
it is advisable to create all the needed before hand, easy for you
SetBarsRequired( -2, -2 );
Plot( C, "Close", ParamColor("Color", colorDefault ), styleNoTitle |...
You just need to goto the Version5.5 help guide or function hint( if any) to look at the plot function parameter setting. and do according the function parameter setting requirement.
please look at your typepo error => -20;
I no longer using below version 6.10. It is your duty to study...
Let me put it this way, they are not as good as you that will know how to complete the code in 13 lines. I can understand your high standard and your proud of yourself.
If you are willing to transfer your know how to show them how you do the 13 lines, it will be very grateful...
I wont do for you anything when i see this post.
Because, Your are like same person on the other tread, you request something, but want the code expert to do all the work from head to tail.
your case, must go and find the code for you.
Why not you to and present the code here, and describe...
You already got the M2[b], why
still want to
why not as below:
if( m2[b] )
if( b > 11 )
PlotText( "_m" , b, L[ b ]-1-dist, colorgold );
PlotText( "2" , b, L[ b ]-1.4-dist, colorRed );
your variables produced by VarSet() are "M1", "M2", "M3"
Is M2 same as "M2" ?
When you do VarGet()
M = VarGet("M1") when i=1
M = VarGet("M2") when i=2
M = VarGet("M3") when i=3
So what is your M2 ?
So the amibroker tell you, I donn't understand M2, because is not initialise