Recent Posts

Pages: [1] 2 3 ... 10
1
Amibroker Help / AFL QUESTION
« Last post by st-scott on May 19, 2017, 04:29:41 am »
hi guy!!
i an new,have the question in afl
i will to make is the buy singal is higher than last buy signal just the same think in trend follow trade the "Highlow"!!
for example ;

high = cross(ma(c,5),ma(c,12));
low = cross(ma(c,12),ma(c,5));

buy = ?????

i want to make the afl happen buy in "highlow"
how to make this
thx!!

 
2
Amibroker Chat / Re: RSI
« Last post by Conans on May 16, 2017, 06:52:01 am »

If you need to know about this site updated 24 hours
3
Amibroker Help / Re: Help witch code
« Last post by Conans on May 16, 2017, 06:51:13 am »
Information can be brought to reality
5
Amibroker Help / Need help with code
« Last post by goodie0018 on May 14, 2017, 05:59:30 am »
Dear all,

I am goodie from Malaysia. For volume at price chart, is there a way to display/determine the volume accumulated at each horizontal bar? if possible, can i code the horizontal volume bar for different color?let say bar turns to red if accumulated volume exceed number= 10000

_SECTION_BEGIN("Volume At Price");
PlotVAPOverlay( Param("Lines", 500, 100, 1000, 1 ), Param("Width", 12, 1, 100, 1 ), ParamColor("Color", colorGrey40 ), ParamToggle("Side", "Left|Right" ) | 4*ParamToggle("Z-order", "On top|Behind", 0 ) );
_SECTION_END();

Attached is the example of how it should be...

Thank you in advance, really need help from you guys, appreciate it, thank you :)
6
Amibroker Help / Help - Fibonacci Retracement - Ami can do this?
« Last post by huybui91 on May 06, 2017, 10:19:52 pm »
Hi all,
On Amibroker, can we draw optional color for Fibonacci range like the picture. For example, from 0% to 38.2% red color, from 38.2% to 50% green....
Thanks for your help guys!

7
Amibroker Help / Re: Filter with conditions in multi timeframe
« Last post by st-scott on May 05, 2017, 10:01:11 am »
hi !! i am the new user of amibroker too
i try to change it to correct AFL but i don't try to filter it
Code: [Select]
TimeFrameSet(inMonthly);
 
MMACD = MACD(12,26)> Signal(12,26,9) ;

TimeFrameRestore();

MMACD = TimeFrameExpand(MMACD,inMonthly);
 
 TimeFrameSet(inWeekly);
 
 Capital = MA(C*V,22)/100000;

TimeFrameRestore();

Capital = TimeFrameExpand(capital,inWEEKLY);

Filter = mmacd && CAPITAL;

8
Amibroker Help / Re: Help witch code
« Last post by st-scott on May 05, 2017, 09:51:35 am »
 hi friend !!
i fix the problem

Code: [Select]
SetPositionSize(1,spsShares);

BuyCond1Occur = False;


BuyCond1 = RSI(14) < 30 ;
BuyCond2 = RSI(14) > 30 ;
SellCond = RSI(14) > 70;

PositionHold = 0;

Buy = 0;
Sell = 0;
Short = 0;
Cover = 0;

for (i = 0; i < BarCount; i++)
{
   if (BuyCond1[i] AND BuyCond1Occur == False AND PositionHold == 0)
   {
      BuyCond1Occur = True;
   }
   else if (BuyCond2[i] AND BuyCond1Occur == True AND PositionHold == 0)
   {
      Buy = True;
      PositionHold++;
      BuyCond1Occur = False;
     
     
   }
   
   else if (SellCond[i] AND PositionHold > 0)
   {
      Sell = True;
      PositionHold = 0;
   }

}

copy that again,i try is ok!!
i miss the icon 
and i set the positionsize is one for u
easy to understanding!!
9
Amibroker Help / Filter with conditions in multi timeframe
« Last post by ctgcvs on May 05, 2017, 12:45:50 am »
I couldnt write code afl including multi conditions in multi timeframe, for example:
Code: [Select]
Capital = MA(C*V,22)/100000;
//weekly conditions
TimeFrameSet(inWeekly);
//monthly conditions
TimeFrameSet(inMonthly);
Filter = MACD(12,26)> Signal(12,26,9) AND Capital>=1;

Please check and help me. Thank you alot :)
10
Amibroker Help / Re: Help witch code
« Last post by pancho0423 on May 03, 2017, 12:58:12 pm »
St-Scott , thanks for your answer !!


I am very clumsy, I do not know why but I get several errors in the code. It is surely my fault.

Error 6. Condition in IF, WHILE, FOR statements has to be Numeric or Boolean type. You can not use array here, please use [] (array subscript operator) to access array elements

Error 30. Syntax error

It´s very dificult afl languaje !!

Pages: [1] 2 3 ... 10