TriggerLines

KelvinHand

Well-Known Member
#12
I am getting error Ln:4 Col:143 : Error 16 , too many arguments
tried again ....still the same error...using Ami version 5.20
Ln:4 is: col = IIf(r > e, colorBlue, colorRed);
Col39:--------------------------------------------^


=> There is no Col:143, there is a ghost in col:143
=> Goto Col:39 erase to col:143 or more to kill the ghost
 

sabhlok_r

Well-Known Member
#16
Ln:4 is: col = IIf(r > e, colorBlue, colorRed);
Col39:--------------------------------------------^


=> There is no Col:143, there is a ghost in col:143
=> Goto Col:39 erase to col:143 or more to kill the ghost
Sorry Kelvin...not well versed with programming....below is the Ln4 as on the wisestocktrader site:
Plot(C,"Price",IIf(C>O,ParamColor("Shadow Up Color",colorBlack),IIf(C<=O,ParamColor("Shadow Down Color",colorBlack),colorLightGrey)),64,0,0,0,0);//Up=DarkGreen/Down=DarkRed/64=Candle/128=Bar

guide me what to delete...
 
#17
Sorry Kelvin...not well versed with programming....below is the Ln4 as on the wisestocktrader site:
Plot(C,"Price",IIf(C>O,ParamColor("Shadow Up Color",colorBlack),IIf(C<=O,ParamColor("Shadow Down Color",colorBlack),colorLightGrey)),64,0,0,0,0);//Up=DarkGreen/Down=DarkRed/64=Candle/128=Bar

guide me what to delete...
Code:
Plot(C, "Price", colorDefault, GetPriceStyle());
There seems to be no error on the line u pasted, anyway try this instead, replace the code for line 4 and see if it works
 

KelvinHand

Well-Known Member
#18
Sorry Kelvin...not well versed with programming....below is the Ln4 as on the wisestocktrader site:
Plot(C,"Price",IIf(C>O,ParamColor("Shadow Up Color",colorBlack),IIf(C<=O,ParamColor("Shadow Down Color",colorBlack),colorLightGrey)),64,0,0,0,0);//Up=DarkGreen/Down=DarkRed/64=Candle/128=Bar

guide me what to delete...

I don't know how you get wrong with it.
Redo using [Copy & Paste Friendly] next to [Show/Hide formula]

OK. I remember the Plot() function on the latest version was added more parameter.
like 5.6 last variable is width of the line.

Check your help on plot(), count how many parameter required, reduce 1 by 1 from last one and see
 
Last edited:

KelvinHand

Well-Known Member
#20
kudos Kelvin....u r a gem...that worked like a charm....thanks a ton
Suggest that you change to 5.5 or 5.6.
It grab some of the idea from Trade Station, you can link multiple charts.
cursor move on 1 chart will move on other charts.

and other better improvement.

and reduce all these stupid problem.