![]() |
ماشاء الله تبارك الله ماشاء الله لاقوة الا بالله , اللهم اني اسالك الهدى
والتقى والعفاف والغنى
| |
|
|
|
|
|
|
|||||||
|
|
|
|
|
#8 | |
|
rsi ![]() كود:
var BAR, APos, MyRSI, PaneRSI, Undervalued: Integer;
Undervalued := 0;
PaneRSI := CreatePane( 100, true, false );
SetPaneMinMax( PaneRSI, 0, 100 );
PlotSeries( RSISeries( #Close, 14 ), PaneRSI, #Navy, #Thick );
DrawHorzLine( 30, PaneRSI , #Silver, #Dotted );
DrawHorzLine( 70, PaneRSI , #Silver, #Dotted );
DrawHorzLine( 50, PaneRSI , #Gray, #Dotted );
for Bar := 15 to BarCount() - 1 do
begin
if EMA( Bar, #Close, 4 ) - EMA( Bar-1, #Close, 4 ) < 0 then
begin
for aPos := 0 to PositionCount() - 1 do
if PositionActive( aPos ) then
SellAtMarket( Bar + 1, aPos, '');
end;
if RSI( Bar, #Close, 14 ) <= 30 then
begin
Undervalued := 1;
end;
if (Undervalued = 1) then
if ( EMA (Bar, #Close, 5) - EMA(Bar -1, #Close, 5) > 0) then
begin
BuyAtMarket( Bar + 1, '');
Undervalued := 0;
end;
end;
|
|
|
|
|
|
|
#9 | |
|
مميزه دوما
الف شكر |
|
|
|
|
|
|
#10 | |
|
الفيبوناتشي ![]() كود:
{$I 'Commentary Utility'}
{$I 'Fibonacci Tools II'}
const ReversalPct = 10.0;
const FibMinBuyLevel = 1;
const FibMaxBuyLevel = 2;
const ProfitPct = 5.0;
const MaxLossToBE = 5.0;
var FibRetrace: TList;
var Bar, Lookback: integer;
var S: string;
InstallProfitTarget( ProfitPct );
InstallReverseBreakEvenStop( MaxLossToBE );
for Bar := 0 to BarCount-1 do
begin
ApplyAutoStops( Bar );
if Lookback <> Trough( Bar, #Close, ReversalPct ) then
begin
LookBack := TroughBar( Bar, #Close, ReversalPct );
FibRetrace := FibRetracements( Bar, Bar-LookBack );
if PriceClose( Bar ) > FibRetrace.Item( FibMinBuyLevel ) then
if PriceClose( Bar ) < FibRetrace.Item( FibMaxBuyLevel ) then
begin
S:= FormatFloat( '##.##%', FibRetrace.Data( FibMinBuyLevel ) * 100 );
BuyAtMarket( Bar + 1, '> '+S+' Level' );
end;
end;
end;
function Retraces( minr, maxr: float ): string;
begin
var minrstr:string = FloatToStr( minr );
var maxrstr:string = FloatToStr( maxr );
Result := ' '
+ 'function cfib(obj) {'
+ ' var dp = 2;'
+ ' with (obj){'
+ ' var a=eval(Up.value);'
+ ' var b=eval(Dn.value);'
+ ' x1=0.236;'
+ ' x2=0.382;'
+ ' x3=0.50;'
+ ' x4=0.618;'
+ ' x5=0.764;'
+ ' if (eval(a) < eval(b)) {'
+ ' fib5.value = fxPrec(a+(x1*(b-a)),dp);'
+ ' fib4.value = fxPrec(a+(x2*(b-a)),dp);'
+ ' fib3.value = fxPrec(a+(x3*(b-a)),dp);'
+ ' fib2.value = fxPrec(a+(x4*(b-a)),dp);'
+ ' fib1.value = fxPrec(a+(x5*(b-a)),dp);'
+ ' fib0.value = fib5.value;'
+ ' fib9.value = fib4.value;'
+ ' fib8.value = fib3.value;'
+ ' fib7.value = fib2.value;'
+ ' fib6.value = fib1.value;'
+ ' }'
+ ' else'
+ ' alert("Invalid Fib Retrace!");'
+ ' }'
+ ' }'
+ ' function retracetab() {'
+ ' var w = 83;'
+ ' var x = 129;'
+ ' tabl_item_b = tabl_inpt_b;'
+ ' tabl_inpt_b = "white";'
+ ' var t = "<"+"form name=fcalc>"'
+ ' + fxTHead(fx_w)'
+ ' + fxTTitle(4,"Fibonacci Retrace Calculator")'
+ ' + "<"+"tr>"'
+ ' + fxTColmn("Enter Peak", 2)'
+ ' + fxTColmn("Enter Trough", 2)'
+ ' + "<"+"/tr>"'
+ ' + "<"+"tr>"'
+ ' + fxTInput("Dn", x, "value='+maxrstr+'", "", 2)'
+ ' + fxTInput("Up", x, "value='+minrstr+'", "", 2)'
+ ' + "<"+"/tr>"'
+ ' + "<"+"tr>"'
+ ' + fxTItem("Peak Retrace", 2)'
+ ' + fxTItem("Trough Retrace", 2)'
+ ' + "<"+"/tr>";'
+ ' tabl_item_b = tabl_colm_b;'
+ ' t += "<"+"tr>"'
+ ' + fxTItem("76.4%", 1)+fxTInput("fib1",w,fx_r)'
+ ' + fxTItem("23.6%", 1)+fxTInput("fib6",w,fx_r)'
+ ' + "<"+"/tr>"'
+ ' + "<"+"tr>"'
+ ' + fxTItem("61.8%", 1)+fxTInput("fib2",w,fx_r)'
+ ' + fxTItem("38.2%", 1)+fxTInput("fib7",w,fx_r)'
+ ' + "<"+"/tr>"'
+ ' + "<"+"tr>"'
+ ' + fxTItem("50.0%", 1)+fxTInput("fib3",w,fx_r)'
+ ' + fxTItem("50.0%", 1)+fxTInput("fib8",w,fx_r)'
+ ' + "<"+"/tr>"'
+ ' + "<"+"tr>"'
+ ' + fxTItem("38.2%", 1)+fxTInput("fib4",w,fx_r)'
+ ' + fxTItem("61.8%", 1)+fxTInput("fib9",w,fx_r)'
+ ' + "<"+"/tr>"'
+ ' + "<"+"tr>"'
+ ' + fxTItem("23.6%", 1)+fxTInput("fib5",w,fx_r)'
+ ' + fxTItem("76.4%", 1)+fxTInput("fib0",w,fx_r)'
+ ' + "<"+"/tr>"'
+ ' + "<"+"/table><"+"br>"'
+ ' + fxTHead(fx_b)'
+ ' + "<"+"td>"+fxCalcBtn("cfib")+"<"+"/td>"'
+ ' + "<"+"/table><"+"/form>";'
+ ' document.write(t);'
+ ' }'
+ ' function fcCFactors() {'
+ ' retracetab();'
+ ' }'
+ ' fcCFactors();';
end;
//Utility
LookBack := 50;
FibRetrace := FibRetracements( Bar-1, LookBack );
DrawFibRetracements( Bar-1, LookBack, #Red );
AnnotateChart( 'Most Recent Fib Retrace Levels', 0, Bar-1-LookBack,
FibRetrace.Item( 5 ), #Blue, 10 );
var fibrs: float = FibRetrace.Item( 0 );
var fibrl: float = FibRetrace.Item( 5 );
AddCommentary( js+r + Commentary_Utility + Retraces( fibrs, fibrl ) + r+ejs );
ShowMessage( 'Also View Commentary For Utility' );
|
|
|
|
|
|
|
#11 | |
|
هذي مشاركات سابقة تم ذكرها في مواضيع سابقة برجع اذكرها هنا المؤشر اللحظي الخاص بالمؤشرات الكلاسيكية مع المتوسطات ![]() المعادلة كود:
var PPOPANE, MACDPane, WeeklyPPOPane, MyMACD, MYPPO, MYPPO2, WeeklyPPO, PlotWeeklyPPO, BAR, MYPPOHISTO, MyPPOHisto2, WeeklyPPOHisto, PlotWeeklyPPOHisto, WeeklySignalLine, PlotWeeklySignalLine, MYMACDHISTO: Integer;
var RealOldWeekSignal, OldWeekSignal, CurrentWeekSignal: float ;
// --------------------------------------------------------------------------------------- //
{ Create a new chart pane to hold our MACD indicator }
MACDPane := CreatePane( 100, TRUE, TRUE );
{Develop the 12,26 MACD Oscillator}
MyMACD := CreateSeries();
for Bar := 26 to BarCount () - 1 do
SetSeriesValue ( Bar, MyMACD, EMA( Bar, #close, 12) - EMA( Bar, #close,26 ) );
{ Set the series for the MACD Histogram }
MyMACDHisto := CreateSeries();
for Bar := 26 to BarCount () - 1 do
SetSeriesValue ( Bar, MyMACDHisto, ((EMA( Bar, #close, 12) - EMA( Bar, #close,26 ))) - EMA(Bar, MyMACD, 9 )) ;
// --------------------------------------------------------------------------------------- //
var xBBU: float;
var xBBL: float;
PlotSeries( BBandUpperSeries( #Close, 10, 1.50 ), 0, 650, #Thin );
PlotSeries( BBandLowerSeries( #Close, 10, 1.50 ), 0, 650, #Thin );
PlotSeries( SMASeries( #Close, 10 ), 0, 650, #thin );
xBBU := BBandUpper( BarCount - 1, #Close, 10, 1.50 );
xBBL := BBandLower( BarCount - 1, #Close, 10, 1.50 );
//----------------------------------------------------------------------------------------------------------//
var x: float;
PlotSeries( SMASeries( #Close, 50 ), 0, #Red, #Thin );
x := SMA( BarCount - 1, #Close, 50 );
PlotSeries( SMASeries( #Close, 100 ), 0, #aqua, #dotted );
x := SMA( BarCount - 1, #Close, 100 );
PlotSeries( SMASeries( #Close, 14 ), 0, #fuchsia, #Thin );
x := SMA( BarCount - 1, #Close, 14 );
PlotSeries( SMASeries( #Close, 9 ), 0, #Green, #Thin );
x := SMA( BarCount - 1, #Close, 9 );
PlotSeries( SMASeries( #Close, 5 ), 0, #blue, #Thin );
x := SMA( BarCount - 1, #Close, 5 );
SetColorScheme( #Lime, 906, #Olive, #black, #Gray, #Silver );
{Plot the 12,26 MACD}
PlotSeries( MyMACD, MACDPane, #red, #Thin ) ;
{Plot a 9 day MACD signal line}
PlotSeries( EMASeries( MyMACD, 9 ), MACDPane, #Blue, #dotted ) ;
{Plot the MACD Histogram}
PlotSeries( MyMACDHisto,MACDPane, 999, #ThickHist) ;
DrawText( ' macd ',MACDPane, 4, 4, #white, 10 );
for Bar := 0 to BarCount - 1 do
begin
if (@MyMACDHisto[bar] > 0) then
SetSeriesBarColor( Bar, MyMACDHisto, #green )
else if (@MyMACDHisto[bar] < 0) then
SetSeriesBarColor( Bar, MyMACDHisto, #red );
end;
var xRSI: float;
var Pane1: integer; Pane1 := CreatePane( 80,true,false );
SetPaneMinMax( Pane1, 20, 80 );
DrawHorzLine( 50, Pane1, 009, #red );
DrawHorzLine( 30, Pane1, 090, #Dotted );
DrawHorzLine( 70, Pane1, 900, #Dotted );
PlotSeries( RSISeries( #Close, 14 ), Pane1, #yellow, #Thick );
xRSI := RSI( BarCount - 1, #Close, 14 );
DrawText( ' rsi' + FormatFloat( '#,##0.00', xRSI ), Pane1, 4, 4, #white, 8 );
{ Draw the result of our commentary to the volume pane }
var COMMENTARYSTRING: string;
CommentaryString := 'moooooooly';
DrawText( CommentaryString, 1, 4, 4, #white,15 );
|
|
|
|
|
|
|
#12 | ||
|
وهذا الثاني اقتباس:
|
||
|
|
|
|
|
#13 | ||
|
وهذا الثالث اقتباس:
|
||
|
|
|
|
|
#14 | ||
|
هنا مؤشرات تم دمجها في مواضيع سابقة لي اقتباس:
|
||
|
|
|
![]() |
| مواقع النشر (المفضلة) |
| الذين يشاهدون محتوى الموضوع الآن : 1 ( الأعضاء 0 والزوار 1) | |
| أدوات الموضوع | |
| انواع عرض الموضوع | |
|
|
المواضيع المتشابهه
|
||||
| الموضوع | كاتب الموضوع | المنتدى | مشاركات | آخر مشاركة |
| متوسطات لبرنامج الويلث . | مزارع | التحليل الفني والأساسي | 4 | 04-06-2010 01:02 AM |
| عقوبة النحلة السكرانة | عذبة السجايا | استراحة اعمال السعوديه | 0 | 03-02-2010 08:38 PM |
| الرائد يهزم النجمة ويتصدرالمجموعة | habob | استراحة اعمال السعوديه | 0 | 12-21-2009 06:35 PM |
| السلاااااااام عليكم بعد غياب أرجع لكم ياأحبتي////العملاق7777///////////////////////// | العملاق7777 | منتدى الاسهم السعوديه | 34 | 04-20-2009 02:27 PM |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27