Simple Coding Help - No Promise.

Snake.Head

Well-Known Member
Guys need help in following afl plots no. below candle bar
Problem is it plots for current day
Is there any way plot on past data too with rest count for each day

_SECTION_BEGIN("Bar Count");
iBars = ParamToggle("BarCount","No|Yes",1);
if (iBars)
iBars = BarsSince( Day() != Ref( Day(), -1 ) );
for ( i = BarCount - ( LastValue( iBars ) + 0 ); i < BarCount; i=i+4 )
{
j = abs( ( LastValue( BarCount ) - 2 * i - ( LastValue( iBars - i ) ) - 2 ) );
PlotText( NumToStr( j, 1 ), i, L - L*0.001, colorBlack );
}
_SECTION_END();
 

dell

Well-Known Member
senior's , a general query :
if in a system there are 5 parameter's , which need to be optimized ,
what is best way ?
all 5 parameters optimized together ( needs lots of time say 15 days for optimizing )
or
optimizing 1 by one ( needs 2 min maximum)

is any difference in result by both ways ? or both are correct way ?
if first way is correct than how to optimize as it needs too much time , is there any way around by we can optimize all parameter at once in a shorter time .
 

chintan786

Well-Known Member
Hello Friends,

looking for Std Deviation plotting in channel for amibroker. Wants to use this for intraday.
If anyone have plz post here.

Regards,
Chintan
 

Shantala

Well-Known Member
senior's , a general query :
if in a system there are 5 parameter's , which need to be optimized ,
what is best way ?
all 5 parameters optimized together ( needs lots of time say 15 days for optimizing )
or
optimizing 1 by one ( needs 2 min maximum)

is any difference in result by both ways ? or both are correct way ?
if first way is correct than how to optimize as it needs too much time , is there any way around by we can optimize all parameter at once in a shorter time .
Optimizing more parameters at a time takes more time.

Once I optimized more than 5 parameters, what I did:

1) Optimized each parameter one by one with liberal range.
2) Optimized 2 parameters at a time with reduced range.
3) Optimized 3 parameters at a time with further reducing range.
4) Optimized 5 parameters at a time with further reducing range.

When parameter optimized to a value to range high or low, I repeated the scan with range including values above and below that value.

Splitting the range definitely helps to reduce the time as well as you can shutdown your system whenever you want.
 
Hi frnds,

Say I have two buy conditions b1 and b2 and i use it as buy=b1 or b2. Trailing stop loss logic for both the conditions is different.

I have used this. SL= iif(b1, logic of b1, logic of b2);
This doesn't work maybe because the bar next to the signal bar may not satisfy b1 hence stoploss is not according to logic of b1.

I want is if a trade is triggered according to b1 then apply logic of b1 on all subsequent bars, same for b2.



plz see the image, in top frame a signal is generated according to b1, and in the lower frame is the tsl according to b1.

Hope someone helps.

Thanks,
Purusharth
 
Last edited:
Hi friends.

Please provide me the code for this.

Attaching a chart

As shown in the chart, I want 2 to 5 (as per need) horizontal lines in the far right area, of length approx 3-4 cms, with these conditions, though not necessary.

1. The lines should not move to the left side of the charting area as chart progresses, (but if possible can be moved up and down.)
2. The value (on y axis) of placement of the lines can be changed as per need, as these values are not fixed. (please code with the values given in the chart)
3. The placement of lines should not be affected in different time frames.
4. I can change style, colour of the lines as per my requirement.
5. If I can get value mentioned on the line as shown, then it will an additional benefit.

Thanks
Still waiting for response
Or
It is not possible to code, as per these requirement.
Then please suggest any modification

Thanks
 

extremist

Well-Known Member
senior's , a general query :
if in a system there are 5 parameter's , which need to be optimized ,
what is best way ?
all 5 parameters optimized together ( needs lots of time say 15 days for optimizing )
or
optimizing 1 by one ( needs 2 min maximum)

is any difference in result by both ways ? or both are correct way ?
if first way is correct than how to optimize as it needs too much time , is there any way around by we can optimize all parameter at once in a shorter time .
If your all 5 parameters are of independent indicators then u can optimize them separately but if there is any slightest combination of indicators used then the only highway left is Optimize at once .

No matter how much time it takes.

OR

IF in your code u can create modules and separate the one big condition to allied modules then u can optimize module by module.
u may call it stepwise progressive optimisation.

But i would prefer all at once.

If i'm wrong please correct me.
 
Any one has any experience about this website?
http://niftyguruss.blogspot.in/
He is a genius (even better than Einstein) for he managed to profit of 66000 from 6 trades (5 with profit of 4000, 1 with loss).

Us average folks would calculate profit @ 16000, but his special "performance sheet software" got him profit of 66000.

What is even more amazing is that one of his trade day was Saturday (2nd Aug). Can't be any better than that.
 
He is a genius (even better than Einstein) for he managed to profit of 66000 from 6 trades (5 with profit of 4000, 1 with loss).

Us average folks would calculate profit @ 16000, but his special "performance sheet software" got him profit of 66000.

What is even more amazing is that one of his trade day was Saturday (2nd Aug). Can't be any better than that.
lol there is another one "eagle" :D
 

Similar threads