Simple Coding Help - No Promise.

Its not working ...I think some modification needed
it works. try "explore" option.
it gives you distance from 200ema, 50ema and 20ema.
if u want only 200ema and %1 option add this code

Code:
Filter = dix200<1.01 AND dix200>-1.01;//less then %1 and more then -%1
put this code before "Col2 = dix200;" section.

and disable "Filter=1;" section.
 

VJAY

Well-Known Member
it works. try "explore" option.
it gives you distance from 200ema, 50ema and 20ema.
if u want only 200ema and %1 option add this code

Code:
Filter = dix200<1.01 AND dix200>-1.01;//less then %1 and more then -%1
put this code before "Col2 = dix200;" section.

and disable "Filter=1;" section.
// DIX-scan.afl - Disparity Index Scan in Amibroker 4.9
// Scan to list DIX(200), DIX(50) and DIX(20)
// ‘use filter’ = Nasdaq 100 stock universe
// ‘range’ = n last days with n=1
// Copyright 2009 Dan Valcu
Buy=1;
Filter = 1; /* all symbols and quotes accepted */
// Compute DIX(200)
nper1 = 200;
Filter = dix200<1.01 AND dix200>-1.01;//less then %1 and more then -%1
dix200=100*(C-EMA(C,nper1))/C;

// Compute DIX(50)
nper2 = 50;
dix50=100*(C-EMA(C,nper2))/C;

// Compute DIX(20)
nper3 = 20;
dix20=100*(C-EMA(C,nper3))/C;

Col2 = dix200;
Col3 = dix50;
Col4 = dix20;

SetOption(“NoDefaultColumns”, True );
AddTextColumn(Name(), “Ticker”, 5 , colorDefault, colorDefault);
AddColumn(Close,”Close”,1.2);
AddColumn(Col2,”DIX(200)”,1.2);
AddColumn(Col3,”DIX(50)”,1.2);
AddColumn(Col4,”DIX(20)”,1.2);
AddTextColumn(Name(), “Ticker”, 5 , colorDefault, colorDefault);
Thanks for the help...i added those line please check it....still now some error coming like this

Untitled.png
 

onequorauser

Well-Known Member
Hi All,

I am trying to analyse my past trades.

For that I need to mark all my trades for post facto . Can someone please help me with a code that allows me to upload an excel or csv which would mark my trades with a short horizontal line of different colors for buy and sell.

I have a data feed that plots the data in Ami so I only need the trade marking

Input parameter = Date(DD/MM/YYY), Time(HH:MM:SS), Scrip,Price, Qty, Buy/Sell
Output = Line marking B/S with Qty mentioned along side

Please see the example below:

1530343273533.png



1530342884603.png



Please let me know in case any additional information is required or if something of this sort is readily available
 
Thanks for the help...i added those line please check it....still now some error coming like this

View attachment 26319
try this formula.
Rich (BB code):
// DIX-scan.afl - Disparity Index Scan in Amibroker 4.9
// Scan to list DIX(200), DIX(50) and DIX(20)
// ‘use filter’ = Nasdaq 100 stock universe
// ‘range’ = n last days with n=1
// Copyright 2009 Dan Valcu
//The disparity index is a simple and efficient oscillator indicator. It represents the percentage that
//the closing price deviates above or below from a chosen average. Its main purpose is capital preservation
//(reduced and controlled risk plus profits locked in).

Buy=1;
//Filter = 1; /* all symbols and quotes accepted

// Compute DIX(200)
nper1 = 200;
dix200=100*(C-EMA(C,nper1))/C;

// Compute DIX(50)
nper2 = 50;
dix50=100*(C-EMA(C,nper2))/C;

// Compute DIX(20)
nper3 = 20;
dix20=100*(C-EMA(C,nper3))/C;

Filter = dix200<1.01 AND dix200>-1.01;//less then %1 and more then -%1

Col2 = dix200;
Col3 = dix50;
Col4 = dix20;

SetOption("NoDefaultColumns", True );
AddTextColumn(Name(), "Ticker", 5 , colorDefault, colorDefault);
AddColumn(Close,"Close",1.2);
AddColumn(Col2,"DIX(200)",1.2);
AddColumn(Col3,"DIX(50)",1.2);
AddColumn(Col4,"DIX(20)",1.2);
AddTextColumn(Name(), "Ticker", 5 , colorDefault, colorDefault);
 

RockyRobust

Well-Known Member
Hello friends, Is it possible to see a Higher Time Frame Super Trend on a Lower Time frame Chart in Amibroker ? I have seen this feature in Falcon platform from Reliable Software. If it is possible then please guide how could it be achieved.
 
Entry for BUY/SELL only in the following
levels :

H3 / H4 / L3 / L4 :
___________________


Indicators used for filtering entries :
_______________________________________

1. EMA 21, EMA 33, EMA 55

2. CCI (14) + 100 / - 100

3. DEFAULT MACD SETTINGS


Upside (Buy Entry ):
____________________

When EMA 21> EMA 33 > EMA 55 Along with
CCI(14) > + 100 , MACD Above zero, we
wait for a price candle to touch either
H3/H4/L3/L4 to take a buy entry

stoploss :
__________

0.5 % below from the camarilla
level at downside.

target :
________

nearby camarilla level at upside.


Downside ( Sell Entry ) :
__________________________


When EMA 21 < EMA 33 < EMA 55 Along with
CCI(14) < - 100 , MACD below zero, we
wait for a price candle to touch either
H3/H4/L3/L4 to take a sell entry

stoploss :
__________

0.5 % above from the camarilla
level at upside.


target :
________

nearby camarilla level at downside.



** Entries strictly at L3/L4/H3/H4

** Exit (stoploss) strictly at nearby below / above
camarilla levels.

** If first entry is profit no more trading

** If first entry is loss, the next entry
can be done

** if both entries loss, no more trading for the day.

** signals after 3 pm can be ignored.

_________________________________________________
 

john302928

Well-Known Member
Hi Could anyone please help me create an indicator showing HH,HL,LH,LL on indicator? Or Instead of creating a new one is it possible to modify the same kind of indicator created for price chart to Indicator?
Please help
 

VJAY

Well-Known Member
Can we get BB (boilinger band) like this step lines in ami?if so please help....

Untitled.png
 

Similar threads