-
Foreks programı güncellendi son hali çok iyi. Metastocka data aktarımı var. Kullanıcı dostu arayüz var, kasmıyor. Bir güncelleme daha olacak kısa süre içerisinde . Formül yüklemede metastock gibi (copy paste ile formüller çalışacak) ve tabii renkolar da olacak. Tester metastock ile aynı olacak sonuçları .
-
Sayın Saraylı sizi yeniden sahalarda görmek güzel Allah uzun ömür versin sevdiklerinizle.
Ami Brokerda Renko kullanılabiliyormu ? Kodunu bilen varmı acaba arkadaşlar? Sanırım Sayın Anonim ilgileniyordu Amibroker ile..
-
Ben çok beğendim , bence popüler olur yakında...
-
[quote=vobbook;400151]Foreks programı güncellendi son hali çok iyi. Metastocka data aktarımı var. Kullanıcı dostu arayüz var, kasmıyor. Bir güncelleme daha olacak kısa süre içerisinde . Formül yüklemede metastock gibi (copy paste ile formüller çalışacak) ve tabii renkolar da olacak. Tester metastock ile aynı olacak sonuçları .[/quote]
[quote=vobbook;400153]Ben çok beğendim , bence popüler olur yakında...[/quote]
memnun oldum...;)
renkoları niçin koydular acaba..??:D:D...gördüğünüz gibi sosyal etkileri olan bir topiğizdir aynı zamanda...:::
Foreks firmasına tşk ediyorum....brv
-
[quote=aslan05;400152]Sayın Saraylı sizi yeniden sahalarda görmek güzel Allah uzun ömür versin sevdiklerinizle.
Ami Brokerda Renko kullanılabiliyormu ? Kodunu bilen varmı acaba arkadaşlar? Sanırım Sayın Anonim ilgileniyordu Amibroker ile..[/quote]
sağolun,;)
ben hep sahalardayım,uslanmaz trader...::::::
benim bildiğim var renko orda,siz yine anonime sorun...
-
[QUOTE=saraylı;400156]memnun oldum...;)
renkoları niçin koydular acaba..??:D:D...gördüğünüz gibi sosyal etkileri olan bir topiğizdir aynı zamanda...:::
Foreks firmasına tşk ediyorum....brv[/QUOTE]
Takip ediyorlardır mutlaka topiği :), piyasa talebine göre güncellemeler en mantıklısı olurdu zaten.
Yazılımda bir değişiklik daha yapıyorlar renkolar güncellemeden sonra aktif olacakmış. Metastocktan birebir formül konabilmesi de güzel. Ateşi yeniden icad etmeye gerek kalmayacak.
-
[quote=aslan05;400152]Sayın Saraylı sizi yeniden sahalarda görmek güzel Allah uzun ömür versin sevdiklerinizle.
Ami Brokerda Renko kullanılabiliyormu ? Kodunu bilen varmı acaba arkadaşlar? Sanırım Sayın Anonim ilgileniyordu Amibroker ile..[/quote]
[URL]http://www.wisestocktrader.com/indicators/434-renko-chart[/URL]
[URL]http://www.wisestocktrader.com/indicators/712-sri-super-renko-indicator[/URL]
-
Tesekkur ederim Sayın Anonim.
-
[URL=http://www.yukle.tc][IMG]http://img411.yukle.tc/images/3206a.png[/IMG][/URL]
-
Sayın Anonimm, size zahmet veriyorum
Üstteki iletinizdeki gibi grafik oluşmuyor bende. Yukarıda linkini verdiğiniz formüller hata veriyor. Analiz ettiğimde aşağıdaki satır hatalı çıkıyor.
up[j] = 0;
-
[quote=aslan05;400169]Sayın Anonimm, size zahmet veriyorum
Üstteki iletinizdeki gibi grafik oluşmuyor bende. Yukarıda linkini verdiğiniz formüller hata veriyor. Analiz ettiğimde aşağıdaki satır hatalı çıkıyor.
up[j] = 0;[/quote]
25 dakikalık periyotta açıp aşağıdaki formülü "insert linked" yapın, parametrelerden "brick size"ı 0.11 yapın
//------------------------------------------------------------------------------
//
// Formula Name: Renko Chart
// Author/Uploader: Graham Kavanagh
// E-mail: [email]gkavanagh@e-wire.net.au[/email]
// Date/Time Added: 2005-07-21 02:18:53
// Origin:
// Keywords: renko
// Level: advanced
// Flags: indicator
// Formula URL: [url]http://www.amibroker.com/library/formula.php?id=521[/url]
// Details URL: [url]http://www.amibroker.com/library/detail.php?id=521[/url]
//
//------------------------------------------------------------------------------
//
// Plot renko chart. Error in plotting will occur if the box and/or reversal
// values are too small causing the number of renko bars exceeding the
// underlying stock normal price bars
//
//------------------------------------------------------------------------------
[SIZE=1][/SIZE][SIZE=1][COLOR=#008000][SIZE=1][COLOR=#008000]// Renko Chart
// Graham Kavanagh 13 Aug 2004 ver C
// Custom Indicator, date axis does not apply
[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1]
[/SIZE][SIZE=1][COLOR=#0000ff][SIZE=1][COLOR=#0000ff]SetBarsRequired[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1]([/SIZE][SIZE=1][COLOR=#800080][SIZE=1][COLOR=#800080]100000[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1],[/SIZE][SIZE=1][COLOR=#800080][SIZE=1][COLOR=#800080]100000[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1]);
[/SIZE][SIZE=1][COLOR=#008000][SIZE=1][COLOR=#008000]// Brick size is dependant on what you want, if too small will not produce a chart due to insufficient x-axis bars
//Brick = LastValue( ATR(100) );
//Brick = LastValue( Max(0.02*C, 0.05) );
[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1]Brick = [/SIZE][SIZE=1][COLOR=#0000ff][SIZE=1][COLOR=#0000ff]Param[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1]( [/SIZE][SIZE=1][COLOR=#800080][SIZE=1][COLOR=#800080]"Brick Size"[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1], [/SIZE][SIZE=1][COLOR=#800080][SIZE=1][COLOR=#800080]0.1[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1], [/SIZE][SIZE=1][COLOR=#800080][SIZE=1][COLOR=#800080]0.01[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1], [/SIZE][SIZE=1][COLOR=#800080][SIZE=1][COLOR=#800080]1.00[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1], [/SIZE][SIZE=1][COLOR=#800080][SIZE=1][COLOR=#800080]0.01[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1] );
reverse = [/SIZE][SIZE=1][COLOR=#800080][SIZE=1][COLOR=#800080]2[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1];
[/SIZE][SIZE=1][COLOR=#008000][SIZE=1][COLOR=#008000]// Convert the closing price to rising and falling rounded bricks
[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1]CF = [/SIZE][SIZE=1][COLOR=#0000ff][SIZE=1][COLOR=#0000ff]ceil[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1]([B]C[/B]/Brick);
CR = [/SIZE][SIZE=1][COLOR=#0000ff][SIZE=1][COLOR=#0000ff]floor[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1]([B]C[/B]/Brick);
[/SIZE][SIZE=1][COLOR=#008000][SIZE=1][COLOR=#008000]// initialize first element
[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1]j = [/SIZE][SIZE=1][COLOR=#800080][SIZE=1][COLOR=#800080]0[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1];
RKC[j] = CF[[/SIZE][SIZE=1][COLOR=#800080][SIZE=1][COLOR=#800080]0[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1]];
RKO[j] = CF[[/SIZE][SIZE=1][COLOR=#800080][SIZE=1][COLOR=#800080]0[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1]] + [/SIZE][SIZE=1][COLOR=#800080][SIZE=1][COLOR=#800080]1[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1];
down[j] = [/SIZE][SIZE=1][COLOR=#800080][SIZE=1][COLOR=#800080]1[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1]; [/SIZE][SIZE=1][COLOR=#008000][SIZE=1][COLOR=#008000]// By default the first bar is a down bar.
[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1]up[j] = [/SIZE][SIZE=1][COLOR=#800080][SIZE=1][COLOR=#800080]0[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1];
[/SIZE][SIZE=1][COLOR=#008000][SIZE=1][COLOR=#008000]// Loop to produce the Renko values in number of bricks
[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1][/SIZE][B][SIZE=1][COLOR=#800000][SIZE=1][COLOR=#800000]for[/B][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1]( i=[/SIZE][SIZE=1][COLOR=#800080][SIZE=1][COLOR=#800080]1[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1]; i<[B]BarCount[/B]-[/SIZE][SIZE=1][COLOR=#800080][SIZE=1][COLOR=#800080]1[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1]; i++ )
{
[/SIZE][B][SIZE=1][COLOR=#800000][SIZE=1][COLOR=#800000]if[/B][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1]( CF[i] <= RKC[j] - [/SIZE][SIZE=1][COLOR=#800080][SIZE=1][COLOR=#800080]1[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1] && down[j] ) [/SIZE][SIZE=1][COLOR=#008000][SIZE=1][COLOR=#008000]// Continue down
[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1]{
num = RKC[j] - CF[i];
[/SIZE][B][SIZE=1][COLOR=#800000][SIZE=1][COLOR=#800000]for[/B][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1]( x=[/SIZE][SIZE=1][COLOR=#800080][SIZE=1][COLOR=#800080]1[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1]; x<=num; x++ )
{
j++;
up[j] = [/SIZE][SIZE=1][COLOR=#800080][SIZE=1][COLOR=#800080]0[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1];
down[j] = [/SIZE][SIZE=1][COLOR=#800080][SIZE=1][COLOR=#800080]1[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1];
RKC[j] = RKC[j-[/SIZE][SIZE=1][COLOR=#800080][SIZE=1][COLOR=#800080]1[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1]] - [/SIZE][SIZE=1][COLOR=#800080][SIZE=1][COLOR=#800080]1[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1];
RKO[j] = RKC[j] + [/SIZE][SIZE=1][COLOR=#800080][SIZE=1][COLOR=#800080]1[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1];
}
}
[/SIZE][B][SIZE=1][COLOR=#800000][SIZE=1][COLOR=#800000]else
[/B][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1]{
[/SIZE][B][SIZE=1][COLOR=#800000][SIZE=1][COLOR=#800000]if[/B][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1]( CR[i] >= RKC[j] + Reverse && down[j] ) [/SIZE][SIZE=1][COLOR=#008000][SIZE=1][COLOR=#008000]// Change down to up
[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1]{
num = CR[i] - RKC[j];
j++;
up[j] = [/SIZE][SIZE=1][COLOR=#800080][SIZE=1][COLOR=#800080]1[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1];
down[j] = [/SIZE][SIZE=1][COLOR=#800080][SIZE=1][COLOR=#800080]0[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1];
RKC[j] = RKC[j-[/SIZE][SIZE=1][COLOR=#800080][SIZE=1][COLOR=#800080]1[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1]] + [/SIZE][SIZE=1][COLOR=#800080][SIZE=1][COLOR=#800080]2[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1];
RKO[j] = RKC[j] - [/SIZE][SIZE=1][COLOR=#800080][SIZE=1][COLOR=#800080]1[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1];
[/SIZE][B][SIZE=1][COLOR=#800000][SIZE=1][COLOR=#800000]for[/B][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1]( x=[/SIZE][SIZE=1][COLOR=#800080][SIZE=1][COLOR=#800080]2[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1]; x<=num; x++ )
{
j++;
up[j] = [/SIZE][SIZE=1][COLOR=#800080][SIZE=1][COLOR=#800080]1[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1];
down[j] = [/SIZE][SIZE=1][COLOR=#800080][SIZE=1][COLOR=#800080]0[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1];
RKC[j] = RKC[j-[/SIZE][SIZE=1][COLOR=#800080][SIZE=1][COLOR=#800080]1[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1]] + [/SIZE][SIZE=1][COLOR=#800080][SIZE=1][COLOR=#800080]1[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1];
RKO[j] = RKC[j] - [/SIZE][SIZE=1][COLOR=#800080][SIZE=1][COLOR=#800080]1[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1];
}
}
[/SIZE][B][SIZE=1][COLOR=#800000][SIZE=1][COLOR=#800000]else
[/B][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1]{
[/SIZE][B][SIZE=1][COLOR=#800000][SIZE=1][COLOR=#800000]if[/B][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1]( CR[i] >= RKC[j] + [/SIZE][SIZE=1][COLOR=#800080][SIZE=1][COLOR=#800080]1[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1] && up[j] ) [/SIZE][SIZE=1][COLOR=#008000][SIZE=1][COLOR=#008000]// Continue Up
[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1]{
num = CR[i] - RKC[j];
[/SIZE][B][SIZE=1][COLOR=#800000][SIZE=1][COLOR=#800000]for[/B][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1]( x=[/SIZE][SIZE=1][COLOR=#800080][SIZE=1][COLOR=#800080]1[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1]; x<=num; x++ )
{
j++;
Up[j] = [/SIZE][SIZE=1][COLOR=#800080][SIZE=1][COLOR=#800080]1[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1];
Down[j] = [/SIZE][SIZE=1][COLOR=#800080][SIZE=1][COLOR=#800080]0[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1];
RKC[j] = RKC[j-[/SIZE][SIZE=1][COLOR=#800080][SIZE=1][COLOR=#800080]1[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1]] + [/SIZE][SIZE=1][COLOR=#800080][SIZE=1][COLOR=#800080]1[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1];
RKO[j] = RKC[j] - [/SIZE][SIZE=1][COLOR=#800080][SIZE=1][COLOR=#800080]1[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1];
}
}
[/SIZE][B][SIZE=1][COLOR=#800000][SIZE=1][COLOR=#800000]else
[/B][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1]{
[/SIZE][B][SIZE=1][COLOR=#800000][SIZE=1][COLOR=#800000]if[/B][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1]( CF[i] <= RKC[j] - Reverse && up[j] ) [/SIZE][SIZE=1][COLOR=#008000][SIZE=1][COLOR=#008000]// Change up to down
[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1]{
num = RKC[j] - CF[i];
j++;
Up[j] = [/SIZE][SIZE=1][COLOR=#800080][SIZE=1][COLOR=#800080]0[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1];
Down[j] = [/SIZE][SIZE=1][COLOR=#800080][SIZE=1][COLOR=#800080]1[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1];
RKC[j] = RKC[j-[/SIZE][SIZE=1][COLOR=#800080][SIZE=1][COLOR=#800080]1[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1]] - [/SIZE][SIZE=1][COLOR=#800080][SIZE=1][COLOR=#800080]2[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1];
RKO[j] = RKC[j] + [/SIZE][SIZE=1][COLOR=#800080][SIZE=1][COLOR=#800080]1[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1];
[/SIZE][B][SIZE=1][COLOR=#800000][SIZE=1][COLOR=#800000]for[/B][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1]( x=[/SIZE][SIZE=1][COLOR=#800080][SIZE=1][COLOR=#800080]2[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1]; x<=num; x++ )
{
j++;
up[j] = [/SIZE][SIZE=1][COLOR=#800080][SIZE=1][COLOR=#800080]0[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1];
down[j] = [/SIZE][SIZE=1][COLOR=#800080][SIZE=1][COLOR=#800080]1[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1];
RKC[j] = RKC[j-[/SIZE][SIZE=1][COLOR=#800080][SIZE=1][COLOR=#800080]1[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1]] - [/SIZE][SIZE=1][COLOR=#800080][SIZE=1][COLOR=#800080]1[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1];
RKO[j] = RKC[j] + [/SIZE][SIZE=1][COLOR=#800080][SIZE=1][COLOR=#800080]1[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1];
}
}
}
}
}
}
[/SIZE][SIZE=1][COLOR=#008000][SIZE=1][COLOR=#008000]// move the chart to right end of chart space, ie last brick on last bar position
[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1]delta = [B]BarCount[/B]-[/SIZE][SIZE=1][COLOR=#800080][SIZE=1][COLOR=#800080]1[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1] - j;
RKC = [/SIZE][SIZE=1][COLOR=#0000ff][SIZE=1][COLOR=#0000ff]Ref[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1]( RKC, -delta );
RKO = [/SIZE][SIZE=1][COLOR=#0000ff][SIZE=1][COLOR=#0000ff]Ref[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1]( RKO, -delta );
Up = [/SIZE][SIZE=1][COLOR=#0000ff][SIZE=1][COLOR=#0000ff]Ref[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1]( Up, -delta );
Down = [/SIZE][SIZE=1][COLOR=#0000ff][SIZE=1][COLOR=#0000ff]Ref[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1]( Down, -delta );
[/SIZE][SIZE=1][COLOR=#008000][SIZE=1][COLOR=#008000]/*
rC = RKC * Brick;// + (Up-down)*Brick/2;
rO = RC - (Up-down)*Brick;
rH = Max(rC,rO);
rL = Min(rC,rO);
*/
[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1]
[B]C[/B] = RKC * Brick;[/SIZE][SIZE=1][COLOR=#008000][SIZE=1][COLOR=#008000]// + (Up-down)*Brick/2;
[/COLOR][/SIZE][/COLOR][/SIZE][B][SIZE=1]O[/B] = [B]C[/B] - (Up-down)*Brick;
[B]H[/B] = [/SIZE][SIZE=1][COLOR=#0000ff][SIZE=1][COLOR=#0000ff]Max[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1]([B]C[/B],[B]O[/B]);
[B]L[/B] = [/SIZE][SIZE=1][COLOR=#0000ff][SIZE=1][COLOR=#0000ff]Min[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1]([B]C[/B],[B]O[/B]);
[/SIZE][SIZE=1][COLOR=#0000ff][SIZE=1][COLOR=#0000ff]Plot[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1]( [B]C[/B], [/SIZE][SIZE=1][COLOR=#800080][SIZE=1][COLOR=#800080]""[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1], [B]colorGrey50[/B],[B]styleCandle[/B]);
[/SIZE][SIZE=1][COLOR=#008000][SIZE=1][COLOR=#008000]// plot chart
//plotOHLC( rO, rH, rL, rC, "Renko Price " , colorBlack, styleCandle);
[/COLOR][/SIZE][/COLOR][/SIZE][B][SIZE=1]GraphXSpace[/B]=[/SIZE][SIZE=1][COLOR=#800080][SIZE=1][COLOR=#800080]5[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1];
[B]Title[/B] = [/SIZE][SIZE=1][COLOR=#0000ff][SIZE=1][COLOR=#0000ff]Name[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1]() + [/SIZE][SIZE=1][COLOR=#800080][SIZE=1][COLOR=#800080]" - {{INTERVAL}} {{DATE}} - Renko Chart : Last Value = "[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1] + RKC * Brick + [/SIZE][SIZE=1][COLOR=#800080][SIZE=1][COLOR=#800080]", Brick Size = "[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1] + Brick;
[/SIZE][SIZE=1][COLOR=#008000][SIZE=1][COLOR=#008000]//=================TITLE================================================================================================
[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1][/SIZE][SIZE=1][COLOR=#008000][SIZE=1][COLOR=#008000]//=================TITLE================================================================================================
[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1][/SIZE][SIZE=1][COLOR=#969696][SIZE=1][COLOR=#969696]_SECTION_BEGIN[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1]([/SIZE][SIZE=1][COLOR=#800080][SIZE=1][COLOR=#800080]"NICK MA Swing"[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1]);
[/SIZE][SIZE=1][COLOR=#0000ff][SIZE=1][COLOR=#0000ff]SetBarsRequired[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1]([/SIZE][SIZE=1][COLOR=#800080][SIZE=1][COLOR=#800080]200[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1],[/SIZE][SIZE=1][COLOR=#800080][SIZE=1][COLOR=#800080]0[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1]);
[B]GraphXSpace[/B] = [/SIZE][SIZE=1][COLOR=#800080][SIZE=1][COLOR=#800080]5[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1];
[/SIZE][SIZE=1][COLOR=#0000ff][SIZE=1][COLOR=#0000ff]SetChartOptions[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1]([/SIZE][SIZE=1][COLOR=#800080][SIZE=1][COLOR=#800080]0[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1],[B]chartShowArrows[/B]|[B]chartShowDates[/B]);
k = [/SIZE][SIZE=1][COLOR=#0000ff][SIZE=1][COLOR=#0000ff]Optimize[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1]([/SIZE][SIZE=1][COLOR=#800080][SIZE=1][COLOR=#800080]"K"[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1],[/SIZE][SIZE=1][COLOR=#0000ff][SIZE=1][COLOR=#0000ff]Param[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1]([/SIZE][SIZE=1][COLOR=#800080][SIZE=1][COLOR=#800080]"K"[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1],[/SIZE][SIZE=1][COLOR=#800080][SIZE=1][COLOR=#800080]1[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1],[/SIZE][SIZE=1][COLOR=#800080][SIZE=1][COLOR=#800080]0.25[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1],[/SIZE][SIZE=1][COLOR=#800080][SIZE=1][COLOR=#800080]50[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1],[/SIZE][SIZE=1][COLOR=#800080][SIZE=1][COLOR=#800080]0.25[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1]),[/SIZE][SIZE=1][COLOR=#800080][SIZE=1][COLOR=#800080]0.25[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1],[/SIZE][SIZE=1][COLOR=#800080][SIZE=1][COLOR=#800080]50[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1],[/SIZE][SIZE=1][COLOR=#800080][SIZE=1][COLOR=#800080]0.25[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1]);
Per= [/SIZE][SIZE=1][COLOR=#0000ff][SIZE=1][COLOR=#0000ff]Optimize[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1]([/SIZE][SIZE=1][COLOR=#800080][SIZE=1][COLOR=#800080]"atr"[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1],[/SIZE][SIZE=1][COLOR=#0000ff][SIZE=1][COLOR=#0000ff]Param[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1]([/SIZE][SIZE=1][COLOR=#800080][SIZE=1][COLOR=#800080]"atr"[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1],[/SIZE][SIZE=1][COLOR=#800080][SIZE=1][COLOR=#800080]4[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1],[/SIZE][SIZE=1][COLOR=#800080][SIZE=1][COLOR=#800080]3[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1],[/SIZE][SIZE=1][COLOR=#800080][SIZE=1][COLOR=#800080]20[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1],[/SIZE][SIZE=1][COLOR=#800080][SIZE=1][COLOR=#800080]1[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1]),[/SIZE][SIZE=1][COLOR=#800080][SIZE=1][COLOR=#800080]3[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1],[/SIZE][SIZE=1][COLOR=#800080][SIZE=1][COLOR=#800080]20[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1],[/SIZE][SIZE=1][COLOR=#800080][SIZE=1][COLOR=#800080]1[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1]);
HACLOSE=([B]O[/B]+[B]H[/B]+[B]L[/B]+[B]C[/B])/[/SIZE][SIZE=1][COLOR=#800080][SIZE=1][COLOR=#800080]4[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1];
HaOpen = [/SIZE][SIZE=1][COLOR=#0000ff][SIZE=1][COLOR=#0000ff]AMA[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1]( [/SIZE][SIZE=1][COLOR=#0000ff][SIZE=1][COLOR=#0000ff]Ref[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1]( HaClose, -[/SIZE][SIZE=1][COLOR=#800080][SIZE=1][COLOR=#800080]1[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1] ), [/SIZE][SIZE=1][COLOR=#800080][SIZE=1][COLOR=#800080]0.5[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1] );
HaHigh = [/SIZE][SIZE=1][COLOR=#0000ff][SIZE=1][COLOR=#0000ff]Max[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1]( [B]H[/B], [/SIZE][SIZE=1][COLOR=#0000ff][SIZE=1][COLOR=#0000ff]Max[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1]( HaClose, HaOpen ) );
HaLow = [/SIZE][SIZE=1][COLOR=#0000ff][SIZE=1][COLOR=#0000ff]Min[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1]( [B]L[/B], [/SIZE][SIZE=1][COLOR=#0000ff][SIZE=1][COLOR=#0000ff]Min[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1]( HaClose, HaOpen ) );
[/SIZE][SIZE=1][COLOR=#0000ff][SIZE=1][COLOR=#0000ff]PlotOHLC[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1]( HaOpen, HaHigh, HaLow, HaClose, [/SIZE][SIZE=1][COLOR=#800080][SIZE=1][COLOR=#800080]""[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1] + [/SIZE][SIZE=1][COLOR=#0000ff][SIZE=1][COLOR=#0000ff]Name[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1](), [B]colorBlack[/B], [B]styleCandle[/B] | [B]styleNoLabel[/B] );
j=Haclose;
[/SIZE][SIZE=1][COLOR=#008000][SIZE=1][COLOR=#008000]//=======================================================================================================================
//=========================Indicator==============================================================================================
[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1]f=[/SIZE][SIZE=1][COLOR=#0000ff][SIZE=1][COLOR=#0000ff]ATR[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1]([/SIZE][SIZE=1][COLOR=#800080][SIZE=1][COLOR=#800080]14[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1]);
rfsctor = [/SIZE][SIZE=1][COLOR=#0000ff][SIZE=1][COLOR=#0000ff]WMA[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1]([B]H[/B]-[B]L[/B], Per);
revers = k * rfsctor;
Trend = [/SIZE][SIZE=1][COLOR=#800080][SIZE=1][COLOR=#800080]1[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1];
NW[[/SIZE][SIZE=1][COLOR=#800080][SIZE=1][COLOR=#800080]0[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1]] = [/SIZE][SIZE=1][COLOR=#800080][SIZE=1][COLOR=#800080]0[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1];
[/SIZE][B][SIZE=1][COLOR=#800000][SIZE=1][COLOR=#800000]for[/B][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1](i = [/SIZE][SIZE=1][COLOR=#800080][SIZE=1][COLOR=#800080]1[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1]; i < [B]BarCount[/B]; i++)
{
[/SIZE][B][SIZE=1][COLOR=#800000][SIZE=1][COLOR=#800000]if[/B][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1](Trend[i-[/SIZE][SIZE=1][COLOR=#800080][SIZE=1][COLOR=#800080]1[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1]] == [/SIZE][SIZE=1][COLOR=#800080][SIZE=1][COLOR=#800080]1[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1])
{
[/SIZE][B][SIZE=1][COLOR=#800000][SIZE=1][COLOR=#800000]if[/B][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1](j[i] < NW[i-[/SIZE][SIZE=1][COLOR=#800080][SIZE=1][COLOR=#800080]1[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1]])
{
Trend[i] = -[/SIZE][SIZE=1][COLOR=#800080][SIZE=1][COLOR=#800080]1[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1];
NW[i] = j[i] + Revers[i];
}
[/SIZE][B][SIZE=1][COLOR=#800000][SIZE=1][COLOR=#800000]else[/B][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1]
{
Trend[i] = [/SIZE][SIZE=1][COLOR=#800080][SIZE=1][COLOR=#800080]1[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1];
[/SIZE][B][SIZE=1][COLOR=#800000][SIZE=1][COLOR=#800000]if[/B][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1]((j[i] - Revers[i]) > NW[i-[/SIZE][SIZE=1][COLOR=#800080][SIZE=1][COLOR=#800080]1[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1]])
{
NW[i] = j[i] - Revers[i];
}
[/SIZE][B][SIZE=1][COLOR=#800000][SIZE=1][COLOR=#800000]else
[/B][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1]{
NW[i] = NW[i-[/SIZE][SIZE=1][COLOR=#800080][SIZE=1][COLOR=#800080]1[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1]];
}
}
}
[/SIZE][B][SIZE=1][COLOR=#800000][SIZE=1][COLOR=#800000]if[/B][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1](Trend[i-[/SIZE][SIZE=1][COLOR=#800080][SIZE=1][COLOR=#800080]1[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1]] == -[/SIZE][SIZE=1][COLOR=#800080][SIZE=1][COLOR=#800080]1[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1])
{
[/SIZE][B][SIZE=1][COLOR=#800000][SIZE=1][COLOR=#800000]if[/B][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1](j[i] > NW[i-[/SIZE][SIZE=1][COLOR=#800080][SIZE=1][COLOR=#800080]1[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1]])
{
Trend[i] = [/SIZE][SIZE=1][COLOR=#800080][SIZE=1][COLOR=#800080]1[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1];
NW[i] = j[i] - Revers[i];
}
[/SIZE][B][SIZE=1][COLOR=#800000][SIZE=1][COLOR=#800000]else[/B][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1]
{
Trend[i] = -[/SIZE][SIZE=1][COLOR=#800080][SIZE=1][COLOR=#800080]1[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1];
[/SIZE][B][SIZE=1][COLOR=#800000][SIZE=1][COLOR=#800000]if[/B][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1]((j[i] + Revers[i]) < NW[i-[/SIZE][SIZE=1][COLOR=#800080][SIZE=1][COLOR=#800080]1[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1]])
{
NW[i] = j[i] + Revers[i];
}
[/SIZE][B][SIZE=1][COLOR=#800000][SIZE=1][COLOR=#800000]else
[/B][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1]{
NW[i] = NW[i-[/SIZE][SIZE=1][COLOR=#800080][SIZE=1][COLOR=#800080]1[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1]];
}
}
}
}
[/SIZE][SIZE=1][COLOR=#008000][SIZE=1][COLOR=#008000]//===============system================
[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1][/SIZE][SIZE=1][COLOR=#0000ff][SIZE=1][COLOR=#0000ff]Plot[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1](NW, [/SIZE][SIZE=1][COLOR=#800080][SIZE=1][COLOR=#800080]""[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1], [/SIZE][SIZE=1][COLOR=#0000ff][SIZE=1][COLOR=#0000ff]IIf[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1](Trend == [/SIZE][SIZE=1][COLOR=#800080][SIZE=1][COLOR=#800080]1[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1], [/SIZE][SIZE=1][COLOR=#800080][SIZE=1][COLOR=#800080]27[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1], [/SIZE][SIZE=1][COLOR=#800080][SIZE=1][COLOR=#800080]4[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1]), [/SIZE][SIZE=1][COLOR=#800080][SIZE=1][COLOR=#800080]4[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1]);
[B]Buy[/B]=[B]Cover[/B]=[/SIZE][SIZE=1][COLOR=#0000ff][SIZE=1][COLOR=#0000ff]Cross[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1](j,nw);
[B]Sell[/B]=[B]Short[/B]=[/SIZE][SIZE=1][COLOR=#0000ff][SIZE=1][COLOR=#0000ff]Cross[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1](nw,j);
[B]SellPrice[/B]=[/SIZE][SIZE=1][COLOR=#0000ff][SIZE=1][COLOR=#0000ff]ValueWhen[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1]([B]Sell[/B],[B]C[/B],[/SIZE][SIZE=1][COLOR=#800080][SIZE=1][COLOR=#800080]1[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1]);
[B]BuyPrice[/B]=[/SIZE][SIZE=1][COLOR=#0000ff][SIZE=1][COLOR=#0000ff]ValueWhen[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1]([B]Buy[/B],[B]C[/B],[/SIZE][SIZE=1][COLOR=#800080][SIZE=1][COLOR=#800080]1[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1]);
Long=[/SIZE][SIZE=1][COLOR=#0000ff][SIZE=1][COLOR=#0000ff]Flip[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1]([B]Buy[/B],[B]Sell[/B]);
Shrt=[/SIZE][SIZE=1][COLOR=#0000ff][SIZE=1][COLOR=#0000ff]Flip[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1]([B]Sell[/B],[B]Buy[/B] );
[/SIZE][SIZE=1][COLOR=#969696][SIZE=1][COLOR=#969696]_SECTION_END[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1]();
[/SIZE][SIZE=1][COLOR=#008000][SIZE=1][COLOR=#008000]//=================TITLE================================================================================================
[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1][COLOR=#969696][SIZE=1][COLOR=#969696]_SECTION_BEGIN[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1]([/SIZE][SIZE=1][COLOR=#800080][SIZE=1][COLOR=#800080]"Title"[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1]);
[/SIZE][B][SIZE=1][COLOR=#800000][SIZE=1][COLOR=#800000]if[/B][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1]( [/SIZE][SIZE=1][COLOR=#0000ff][SIZE=1][COLOR=#0000ff]Status[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1]([/SIZE][SIZE=1][COLOR=#800080][SIZE=1][COLOR=#800080]"action"[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1]) == [B]actionIndicator[/B] )
(
[B]Title[/B] = [/SIZE][SIZE=1][COLOR=#0000ff][SIZE=1][COLOR=#0000ff]EncodeColor[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1]([B]colorWhite[/B])+ [/SIZE][SIZE=1][COLOR=#800080][SIZE=1][COLOR=#800080]"NICK MA Swing System"[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1] + [/SIZE][SIZE=1][COLOR=#800080][SIZE=1][COLOR=#800080]" - "[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1] + [/SIZE][SIZE=1][COLOR=#0000ff][SIZE=1][COLOR=#0000ff]Name[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1]() + [/SIZE][SIZE=1][COLOR=#800080][SIZE=1][COLOR=#800080]" - "[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1] + [/SIZE][SIZE=1][COLOR=#0000ff][SIZE=1][COLOR=#0000ff]EncodeColor[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1]([B]colorRed[/B])+ [/SIZE][SIZE=1][COLOR=#0000ff][SIZE=1][COLOR=#0000ff]Interval[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1]([/SIZE][SIZE=1][COLOR=#800080][SIZE=1][COLOR=#800080]2[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1]) + [/SIZE][SIZE=1][COLOR=#0000ff][SIZE=1][COLOR=#0000ff]EncodeColor[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1]([B]colorWhite[/B]) +
[/SIZE][SIZE=1][COLOR=#800080][SIZE=1][COLOR=#800080]" - "[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1] + [/SIZE][SIZE=1][COLOR=#0000ff][SIZE=1][COLOR=#0000ff]Date[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1]() +[/SIZE][SIZE=1][COLOR=#800080][SIZE=1][COLOR=#800080]" - "[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1]+[/SIZE][SIZE=1][COLOR=#800080][SIZE=1][COLOR=#800080]"\n"[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1] +[/SIZE][SIZE=1][COLOR=#0000ff][SIZE=1][COLOR=#0000ff]EncodeColor[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1]([B]colorBlack[/B]) +[/SIZE][SIZE=1][COLOR=#800080][SIZE=1][COLOR=#800080]"Op-"[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1]+[B]O[/B]+[/SIZE][SIZE=1][COLOR=#800080][SIZE=1][COLOR=#800080]" "[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1]+[/SIZE][SIZE=1][COLOR=#800080][SIZE=1][COLOR=#800080]"Hi-"[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1]+[B]H[/B]+[/SIZE][SIZE=1][COLOR=#800080][SIZE=1][COLOR=#800080]" "[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1]+[/SIZE][SIZE=1][COLOR=#800080][SIZE=1][COLOR=#800080]"Lo-"[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1]+[B]L[/B]+[/SIZE][SIZE=1][COLOR=#800080][SIZE=1][COLOR=#800080]" "[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1]+
[/SIZE][SIZE=1][COLOR=#800080][SIZE=1][COLOR=#800080]"Cl-"[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1]+[B]C[/B]+[/SIZE][SIZE=1][COLOR=#800080][SIZE=1][COLOR=#800080]" "[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1]+ [/SIZE][SIZE=1][COLOR=#800080][SIZE=1][COLOR=#800080]"Vol= "[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1]+ [/SIZE][SIZE=1][COLOR=#0000ff][SIZE=1][COLOR=#0000ff]WriteVal[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1]([B]V[/B])+[/SIZE][SIZE=1][COLOR=#800080][SIZE=1][COLOR=#800080]"\n"[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1]+
[/SIZE][SIZE=1][COLOR=#0000ff][SIZE=1][COLOR=#0000ff]EncodeColor[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1]([B]colorLime[/B])+
[/SIZE][SIZE=1][COLOR=#0000ff][SIZE=1][COLOR=#0000ff]WriteIf[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1] ([B]Buy[/B] , [/SIZE][SIZE=1][COLOR=#800080][SIZE=1][COLOR=#800080]" GO LONG / Reverse Signal at "[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1]+[B]C[/B]+[/SIZE][SIZE=1][COLOR=#800080][SIZE=1][COLOR=#800080]" "[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1],[/SIZE][SIZE=1][COLOR=#800080][SIZE=1][COLOR=#800080]""[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1])+
[/SIZE][SIZE=1][COLOR=#0000ff][SIZE=1][COLOR=#0000ff]WriteIf[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1] ([B]Sell[/B] , [/SIZE][SIZE=1][COLOR=#800080][SIZE=1][COLOR=#800080]" EXIT LONG / Reverse Signal at "[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1]+[B]C[/B]+[/SIZE][SIZE=1][COLOR=#800080][SIZE=1][COLOR=#800080]" "[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1],[/SIZE][SIZE=1][COLOR=#800080][SIZE=1][COLOR=#800080]""[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1])+[/SIZE][SIZE=1][COLOR=#800080][SIZE=1][COLOR=#800080]"\n"[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1]+[/SIZE][SIZE=1][COLOR=#0000ff][SIZE=1][COLOR=#0000ff]EncodeColor[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1]([B]colorWhite[/B])+
[/SIZE][SIZE=1][COLOR=#0000ff][SIZE=1][COLOR=#0000ff]WriteIf[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1]([B]Sell[/B] , [/SIZE][SIZE=1][COLOR=#800080][SIZE=1][COLOR=#800080]"Total Profit/Loss for the Last Trade Rs."[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1]+([B]C[/B]-[B]BuyPrice[/B])+[/SIZE][SIZE=1][COLOR=#800080][SIZE=1][COLOR=#800080]""[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1],[/SIZE][SIZE=1][COLOR=#800080][SIZE=1][COLOR=#800080]""[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1])+
[/SIZE][SIZE=1][COLOR=#0000ff][SIZE=1][COLOR=#0000ff]WriteIf[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1]([B]Buy[/B] , [/SIZE][SIZE=1][COLOR=#800080][SIZE=1][COLOR=#800080]"Total Profit/Loss for the Last trade Rs."[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1]+([B]SellPrice[/B]-[B]C[/B])+[/SIZE][SIZE=1][COLOR=#800080][SIZE=1][COLOR=#800080]""[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1],[/SIZE][SIZE=1][COLOR=#800080][SIZE=1][COLOR=#800080]""[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1])+
[/SIZE][SIZE=1][COLOR=#0000ff][SIZE=1][COLOR=#0000ff]WriteIf[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1](Long [B]AND[/B] [B]NOT[/B] [B]Buy[/B], [/SIZE][SIZE=1][COLOR=#800080][SIZE=1][COLOR=#800080]"Trade : Long - Entry price Rs."[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1]+([B]BuyPrice[/B]),[/SIZE][SIZE=1][COLOR=#800080][SIZE=1][COLOR=#800080]""[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1])+
[/SIZE][SIZE=1][COLOR=#0000ff][SIZE=1][COLOR=#0000ff]WriteIf[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1](shrt [B]AND[/B] [B]NOT[/B] [B]Sell[/B], [/SIZE][SIZE=1][COLOR=#800080][SIZE=1][COLOR=#800080]"Trade : Short - Entry price Rs."[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1]+([B]SellPrice[/B]),[/SIZE][SIZE=1][COLOR=#800080][SIZE=1][COLOR=#800080]""[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1])+[/SIZE][SIZE=1][COLOR=#800080][SIZE=1][COLOR=#800080]"\n"[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1]+
[/SIZE][SIZE=1][COLOR=#0000ff][SIZE=1][COLOR=#0000ff]WriteIf[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1](Long [B]AND[/B] [B]NOT[/B] [B]Buy[/B], [/SIZE][SIZE=1][COLOR=#800080][SIZE=1][COLOR=#800080]"Current Profit/Loss Rs."[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1]+([B]C[/B]-[B]BuyPrice[/B])+[/SIZE][SIZE=1][COLOR=#800080][SIZE=1][COLOR=#800080]""[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1],[/SIZE][SIZE=1][COLOR=#800080][SIZE=1][COLOR=#800080]""[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1])+
[/SIZE][SIZE=1][COLOR=#0000ff][SIZE=1][COLOR=#0000ff]WriteIf[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1](shrt [B]AND[/B] [B]NOT[/B] [B]Sell[/B], [/SIZE][SIZE=1][COLOR=#800080][SIZE=1][COLOR=#800080]"Current Profit/Loss Rs."[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1]+([B]SellPrice[/B]-[B]C[/B])+[/SIZE][SIZE=1][COLOR=#800080][SIZE=1][COLOR=#800080]""[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1],[/SIZE][SIZE=1][COLOR=#800080][SIZE=1][COLOR=#800080]""[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1]));
[/SIZE][SIZE=1][COLOR=#0000ff][SIZE=1][COLOR=#0000ff]PlotShapes[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1]([/SIZE][SIZE=1][COLOR=#0000ff][SIZE=1][COLOR=#0000ff]IIf[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1]([B]Buy[/B], [B]shapeSquare[/B], [B]shapeNone[/B]),[B]colorGreen[/B], [/SIZE][SIZE=1][COLOR=#800080][SIZE=1][COLOR=#800080]0[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1], [B]L[/B], Offset=-[/SIZE][SIZE=1][COLOR=#800080][SIZE=1][COLOR=#800080]40[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1]);
[/SIZE][SIZE=1][COLOR=#0000ff][SIZE=1][COLOR=#0000ff]PlotShapes[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1]([/SIZE][SIZE=1][COLOR=#0000ff][SIZE=1][COLOR=#0000ff]IIf[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1]([B]Buy[/B], [B]shapeSquare[/B], [B]shapeNone[/B]),[B]colorLime[/B], [/SIZE][SIZE=1][COLOR=#800080][SIZE=1][COLOR=#800080]0[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1],[B]L[/B], Offset=-[/SIZE][SIZE=1][COLOR=#800080][SIZE=1][COLOR=#800080]50[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1]);
[/SIZE][SIZE=1][COLOR=#0000ff][SIZE=1][COLOR=#0000ff]PlotShapes[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1]([/SIZE][SIZE=1][COLOR=#0000ff][SIZE=1][COLOR=#0000ff]IIf[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1]([B]Buy[/B], [B]shapeUpArrow[/B], [B]shapeNone[/B]),[B]colorWhite[/B], [/SIZE][SIZE=1][COLOR=#800080][SIZE=1][COLOR=#800080]0[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1],[B]L[/B], Offset=-[/SIZE][SIZE=1][COLOR=#800080][SIZE=1][COLOR=#800080]45[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1]);
[/SIZE][SIZE=1][COLOR=#0000ff][SIZE=1][COLOR=#0000ff]PlotShapes[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1]([/SIZE][SIZE=1][COLOR=#0000ff][SIZE=1][COLOR=#0000ff]IIf[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1]([B]Sell[/B], [B]shapeSquare[/B], [B]shapeNone[/B]),[B]colorRed[/B], [/SIZE][SIZE=1][COLOR=#800080][SIZE=1][COLOR=#800080]0[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1], [B]H[/B], Offset=[/SIZE][SIZE=1][COLOR=#800080][SIZE=1][COLOR=#800080]40[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1]);
[/SIZE][SIZE=1][COLOR=#0000ff][SIZE=1][COLOR=#0000ff]PlotShapes[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1]([/SIZE][SIZE=1][COLOR=#0000ff][SIZE=1][COLOR=#0000ff]IIf[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1]([B]Sell[/B], [B]shapeSquare[/B], [B]shapeNone[/B]),[B]colorOrange[/B], [/SIZE][SIZE=1][COLOR=#800080][SIZE=1][COLOR=#800080]0[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1],[B]H[/B], Offset=[/SIZE][SIZE=1][COLOR=#800080][SIZE=1][COLOR=#800080]50[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1]);
[/SIZE][SIZE=1][COLOR=#0000ff][SIZE=1][COLOR=#0000ff]PlotShapes[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1]([/SIZE][SIZE=1][COLOR=#0000ff][SIZE=1][COLOR=#0000ff]IIf[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1]([B]Sell[/B], [B]shapeDownArrow[/B], [B]shapeNone[/B]),[B]colorWhite[/B], [/SIZE][SIZE=1][COLOR=#800080][SIZE=1][COLOR=#800080]0[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1],[B]H[/B], Offset=-[/SIZE][SIZE=1][COLOR=#800080][SIZE=1][COLOR=#800080]45[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1]);
[/SIZE][SIZE=1][COLOR=#969696][SIZE=1][COLOR=#969696]_SECTION_END[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=1]();
[/SIZE]
-
diğer parametreler ise k: 5,25 atr:4