قديم 14-09-2014, 02:55 PM
  المشاركه #1

عضو هوامير المؤسس

تاريخ التسجيل: Jul 2005
المشاركات: 2,316
almasdar غير متواجد حالياً  

السلام عليكم ورحمه الله

اولا جزاكم الله خير على ماتقدمونه لاخوانكم

عندي معادله ماعرفت لها وودي تعم الفائده للجميع اذا فيها فائده

اذا ممكن ___اكسيل او مؤشر للبروكر

المعادله

( عندنا نقطة ارتكاز وليكن مثلا 45 ومقاومه 50 ودعم 40
نقطة الدخول =(الارتكاز -الدعم)/2+الدعم وتصبح 45-40=5/2=2.5+40=42.5 هي نقطة الدخول
الحروج=(المقاومه-(المقاومه -الارتكاز)/2 وتصبح 50-(50-45/2=50-2.5=47.5 نقطة الخروج )

ولكم جزيل الشكر

الموضوع الأصلي : اضغط هنا    ||   المصدر : منتدى هوامير البورصة السعودية


رد مع اقتباس
 
 

قديم 14-09-2014, 04:17 PM
  المشاركه #2

عضو هوامير المميز

تاريخ التسجيل: Dec 2012
المشاركات: 1,250
أبو نـــاصر غير متواجد حالياً  

وعليكم السلام ورحمة الله وبركاته

تفضل عزيزي

يفترض التحديث تلقائي يوميا

http://upload.hawamer.com/d.php?hash...BORBE8GQ8FFN84



رد مع اقتباس
قديم 14-09-2014, 05:09 PM
  المشاركه #3

عضو هوامير المميز

تاريخ التسجيل: Nov 2010
المشاركات: 13,581
بنك المشاعر غير متواجد حالياً  

يا سلام عليك يابو ناصر كم انت مبدع

جزاك الله كل خير



رد مع اقتباس
قديم 14-09-2014, 06:57 PM
  المشاركه #4

كاتب مميز

تاريخ التسجيل: Feb 2010
المشاركات: 8,223
برسلي غير متواجد حالياً  

ما قصر ابو ناصر


رد مع اقتباس
قديم 14-09-2014, 07:05 PM
  المشاركه #5

عضو هوامير المؤسس

تاريخ التسجيل: Jul 2005
المشاركات: 2,316
almasdar غير متواجد حالياً  

ماشاء الله تبارك الله

ماخاب ظني فيكم الاثنين سباقين للخير جزاكم الله خير وزادكم من فضله وعلمه



رد مع اقتباس
قديم 14-09-2014, 07:21 PM
  المشاركه #6

عضو هوامير المميز

تاريخ التسجيل: Oct 2013
المشاركات: 503
DABL@ غير متواجد حالياً  

الله يسعدكم جميعا








_section_begin("background");
setchartoptions(0,chartshowarrows|chartshowdates);
pricetitle=strformat("---- {{name}} ---------- {{values}}");
title ="averages" + pricetitle;

if( paramtoggle("tooltip shows", "all values|only prices" ) )
{
tooltip=strformat("open: %g\nhigh: %g\nlow: %g\nclose: %g (%.1f%%)\nvolume: "+numtostr( v, 1 ), o, h, l, c, selectedvalue( roc( c, 1 )));
}

setchartbkcolor(paramcolor("outer panel color ",colorblack)); // color of outer border
setchartbkgradientfill( paramcolor("inner panel color upper half",colorblack),paramcolor("inner panel color lower half",colorblack)); // color of inner panel
_section_end();Plot( C, "Close", ParamColor("Color", colorDefault ), styleNoTitle | ParamStyle("Style") | GetPriceStyle() );
p=((C+L+H+o)/4);
r1=((C+L+H+o)/4*2-L) ;
s1=((C+L+H)/3*2-H) ;
pp=(p-r1)/2-r1;
pp1=(p-s1)/2+s1;
Title_X = StrFormat("{{NAME}} - {{INTERVAL}} {{DATE}} Open %g, Hi %g, Lo %g, Close %g (%.1f%%) {{VALUES}}", O, H, L, C, SelectedValue( ROC( C, 1 ) ) );
Title = Title_X + "\n" +

EncodeColor(colorGreen) + "
دخول " + WriteVal(pp1, 1.2)+EncodeColor(colorRed) + "
خروج " + WriteVal(pp, 1.2)+EncodeColor(colorGold) + "


الارتكاز " + WriteVal(p, 1.2)+EncodeColor(colorGreen) + "


المقاومه " + WriteVal(r1, 1.2) + EncodeColor(colorRed) + "
الدعم " + WriteVal(s1, 1.2) + EncodeColor(colorRed) ;












تاكد منها في الدعم و المقاومه و الارتكاز



رد مع اقتباس
قديم 14-09-2014, 07:29 PM
  المشاركه #7

عضو هوامير المؤسس

تاريخ التسجيل: Jul 2005
المشاركات: 2,316
almasdar غير متواجد حالياً  

douplexx ماقصرت رحم الله والديك

ياليت راي الاخوان في المعادله وهل تحتاج تعديل



رد مع اقتباس
قديم 14-09-2014, 08:19 PM
  المشاركه #8

كاتب مميز

تاريخ التسجيل: Feb 2010
المشاركات: 8,223
برسلي غير متواجد حالياً  

اقتباس:
المشاركة الأصلية كتبت بواسطة almasdar مشاهدة المشاركة
douplexx ماقصرت رحم الله والديك

ياليت راي الاخوان في المعادله وهل تحتاج تعديل
احتاج منك معرفة معادلة الارتكاز التي تعتمدها في متابعتك وكذالك معادلة الدعم والمقاومه حتى استطيع متابعة النتائج

تعرف ان هناك اكثر من معادلة لاخراج الارتكاز والدعم والمقاومه كلها تختلف عن الاخرى وهذا يوثر على عمل المعادله



رد مع اقتباس
قديم 15-09-2014, 07:57 AM
  المشاركه #9

عضو هوامير المؤسس

تاريخ التسجيل: Jul 2005
المشاركات: 2,316
almasdar غير متواجد حالياً  

هلا بالطيب
صحيح مختلفه عن بعض وانا اذا ركزت على سهم استخدم الاتي

نقطة الارتكاز = ( أعلى سعر خلال اليوم + أقل سعر خلال اليوم + سعر إغلاق اليوم ) ÷ 3



المقاومه الاولى = ( نقطة الارتكاز × 2 ) - أقل سعر خلال اليوم



أى انها تعادل ضعف نقطه الارتكاز مطروحاً منها أقل سعر اليوم



المقاومه الثانيه = نقطة الارتكاز + ( أعلى سعر خلال اليوم - أقل سعر خلال اليوم )

أى انها تعادل نقطة الارتكاز مضافاً اليها الفرق بين أعلى و أقل سعر خلال اليوم




المقاومه الثالثه = المقاومه الاولى + ( أعلى سعر خلال اليوم - أقل سعر خلال اليوم )

أى أنها تعادل المقاومه الاولى مضافاً اليها الفرق بين أعلى و أقل سعر خلال اليوم





نقطة الدعم الاولى = ( نقطه الارتكاز × 2 ) - أعلى سعر خلال اليوم

أى انها تعادل ضعف نقطه الارتكاز مطروحاً منها اعلى سعر خلال اليوم


....................

نقطة الدعم الثانيه = نقطة الارتكاز - ( أعلى سعر خلال اليوم - أقل سعر خلال اليوم )

أى انها تعادل نقطه الارتكاز مطروحاً منها الفرق بين اعلى و اقل سعر خلال اليوم

...........................

نقطة الدعم الثالثه = نقطة الدعم الاولى - ( أعلى سعر خلال اليوم - أقل سعر خلال اليوم )

أى انها تعادل نقطة الدعم الاولى مطروحاً منها الفرق بين اعلى و اقل سعر خلال اليوم



رد مع اقتباس
قديم 15-09-2014, 08:01 AM
  المشاركه #10

عضو هوامير المؤسس

تاريخ التسجيل: Jul 2005
المشاركات: 2,316
almasdar غير متواجد حالياً  

المسلفط سامحني الكبر شين الله يوفقك وينك

تخيلوا ابوناصر وبرسلي والمسلفط اجتمعوا على معادله تبارك الرحمن



رد مع اقتباس
قديم 15-09-2014, 08:39 AM
  المشاركه #11

عضو هوامير المميز

تاريخ التسجيل: Oct 2013
المشاركات: 503
DABL@ غير متواجد حالياً  

حياك و يسعد صباحك almasdar









_section_begin("background");
setchartoptions(0,chartshowarrows|chartshowdates);
pricetitle=strformat("---- {{name}} ---------- {{values}}");
title ="averages" + pricetitle;

if( paramtoggle("tooltip shows", "all values|only prices" ) )
{
tooltip=strformat("open: %g\nhigh: %g\nlow: %g\nclose: %g (%.1f%%)\nvolume: "+numtostr( v, 1 ), o, h, l, c, selectedvalue( roc( c, 1 )));
}

setchartbkcolor(paramcolor("outer panel color ",colorblack)); // color of outer border
setchartbkgradientfill( paramcolor("inner panel color upper half",colorblack),paramcolor("inner panel color lower half",colorblack)); // color of inner panel
_section_end();Plot( C, "Close", ParamColor("Color", colorDefault ), styleNoTitle | ParamStyle("Style") | GetPriceStyle() );
p=((C+L+H )/3);
r1=(p*2-L) ;
r2=p+(H-l);
r3= r2 +(H-l) ;


s1=(p*2-h) ;
s2=p-(H-l);
s3= s2 -(H-l) ;
pp=((p-r1)/2)-r1;
pp1=(p-s1)/2+s1;
Title_X = StrFormat("{{NAME}} - {{INTERVAL}} {{DATE}} Open %g, Hi %g, Lo %g, Close %g (%.1f%%) {{VALUES}}", O, H, L, C, SelectedValue( ROC( C, 1 ) ) );
Title = Title_X + "\n" +

EncodeColor(colorGreen) + "
دخول " + WriteVal(pp1, 1.2)+EncodeColor(colorRed) + "
خروج " + WriteVal(pp, 1.2)+EncodeColor(colorGold) + "


الارتكاز " + WriteVal(p, 1.2)+EncodeColor(colorGreen) + "


1 المقاومه " + WriteVal(r1, 1.2) + EncodeColor(colorGreen) + "
2 المقاومه " + WriteVal(r2, 1.2) + EncodeColor(colorGreen) + "
3 المقاومه " + WriteVal(r3, 1.2) + EncodeColor(colorRed) + "

1 الدعم " + WriteVal(s1, 1.2) + EncodeColor(colorRed) + "
2 الدعم " + WriteVal(s2, 1.2) + EncodeColor(colorRed) + "
3 الدعم " + WriteVal(s3, 1.2) + EncodeColor(colorRed) ;











تاكد منها نفس المطلوب



رد مع اقتباس
قديم 15-09-2014, 08:50 AM
  المشاركه #12

عضو هوامير المؤسس

تاريخ التسجيل: Jul 2005
المشاركات: 2,316
almasdar غير متواجد حالياً  

يصبحك بالنور والسرور براقبها وان شاء تضبط

اضفت لها الاتي

_SECTION_BEGIN("TD Demand Line");
Plot(C,"",colorGreen,styleBar);

pivotlow = Ref(L,-1)>L AND L<Ref(L,1);
y0=SelectedValue(ValueWhen(pivotlow,L,2) );
y1=SelectedValue(ValueWhen(pivotlow,L,1) );
x0=SelectedValue(ValueWhen(pivotlow,Cum( 1)-1,2));
x1=SelectedValue(ValueWhen(pivotlow,Cum( 1)-1,1));
Cond=y1>y0;
Line=LineArray(x0,y0,x1,y1,1);
Plot(IIf(Cond,Line,Null),"",colorBlue,styleLine|
styleThick|styleNoRescale|styleNoLabel);
PlotShapes((Cum(1)-1==x0 OR Cum(1)-1==x1)
*shapeSmallCircle,colorBlue,0,L);
PlotShapes((cond AND Cross(Cum(C<Line AND Cum(1)-1>x1),0))
*shapeDownArrow,colorRed,0,H);


Title="TD Demand Line";
GraphXSpace=4;
_SECTION_END();

LookBack=Param("Lookback (RegressionChannel)",72,1,300);

NH = LastValue(HHVBars(High,LookBack)); // lookback period - can be set by the user if necessary
NL = LastValue(LLVBars(Low ,LookBack)); // lookback period - can be set by the user if necessary

N=0;
if(NL>NH) { N=NL; } else { N=NH; }

Start = 1;

X = Cum(Start); // Set up the x cordinate array of the Linear Regression Line
Y = Close; // Set the y co-ordinate of the Linear Regression line

/* Calculate the slope (bconst) and the y intercept (aconst) of the line */

SUMX = LastValue(Sum(X,N));
SUMY = LastValue(Sum(Y,N));
SUMXY = LastValue(Sum(X*Y,N));
SUMXSqd = LastValue(Sum(X*X,N));
SUMSqdX = LastValue(SUMX * SUMX);

bconst = (N * SUMXY - SUMX * SUMY)/(N * SUMXSqd - SUMSqdX);
aconst = (SUMY - bconst * (SUMX))/N;

/* Force the x value to be very negative so the graph does not apear before the
lookback period */

Domain = IIf ( X > LastValue(X) - N, 1 , -1e10);
Xvar = X * Domain;

/* Linear Regression Line */

Yvar = aconst + bconst * Xvar;

Plot(Yvar + LastValue(HHV(High - Yvar,N)),"Upper Channel",colorBrown,styleDots|styleNoLabel);
Plot(Yvar,"Middle Channel",colorBrown,styleDots|styleNoLabel);
Plot(Yvar - LastValue(HHV(Yvar - Low ,N)),"Lower Channel",colorBrown,styleDots|styleNoLabel);
numbars = SelectedValue(Cum(Status("barvisible")));
fraction= IIf(StrRight(Name(),3) == "",3.2,3.2);
hts = Param ("Text Shift", -50,-100,100,10);
PlotText("" + WriteVal(Yvar + LastValue(HHV(High - Yvar,N)),fraction),
SelectedValue(BarIndex()+1)-(numbars/hts),SelectedValue(Yvar + LastValue(HHV(High - Yvar,N))),2);
PlotText("" + WriteVal(Yvar,fraction),
SelectedValue(BarIndex()+1)-(numbars/hts),SelectedValue(Yvar),2);
PlotText("" + WriteVal(Yvar - LastValue(HHV(Yvar - Low ,N)),fraction),
SelectedValue(BarIndex()+1)-(numbars/hts),SelectedValue(Yvar - LastValue(HHV(Yvar - Low ,N))),2);

_SECTION_BEGIN("pivot finde ");


// -- what will be our lookback range for the hh and ll?
farback=Param("How Far back to go",100,50,5000,10);
nBars = Param("Number of bars", 12, 5, 40);

// -- Title.

Title = Name () + " (" + StrLeft(FullName(), 15) + ") O: " + Open + ",

H: " + High + ", L: " + Low + ", C: " + Close;

// -- Plot basic candle chart

PlotOHLC(Open, High, Low, Close,

"BIdx = " + BarIndex() +

"\n" + "O = " + O + "\n"+"H = "+ H + "\n"+"L = " + L

+ "\n"+"C ",

colorBlack, styleBar);

GraphXSpace=7;

// -- Create 0-initialized arrays the size of barcount

aHPivs = H - H;

aLPivs = L - L;

// -- More for use, not necessary for basic plotting

aHPivHighs = H - H;

aLPivLows = L - L;

aHPivIdxs = H - H;

aLPivIdxs = L - L;

nHPivs = 0;

nLPivs = 0;

lastHPIdx = 0;

lastLPIdx = 0;

lastHPH = 0;

lastLPL = 0;

curPivBarIdx = 0;

// -- looking back from the current bar, how many bars

// back were the hhv and llv values of the previous

// n bars, etc.?

aHHVBars = HHVBars(H, nBars);

aLLVBars = LLVBars(L, nBars);

aHHV = HHV(H, nBars);

aLLV = LLV(L, nBars);

// -- Would like to set this up so pivots are calculated back from

// last visible bar to make it easy to "go back" and see the pivots

// this code would find. However, the first instance of

// _Trace output will show a value of 0

aVisBars = Status("barvisible");

nLastVisBar = LastValue(Highest(IIf(aVisBars, BarIndex(), 0)));

_TRACE("Last visible bar: " + nLastVisBar);

// -- Initialize value of curTrend

curBar = (BarCount-1);

curTrend = "";

if (aLLVBars[curBar] <

aHHVBars[curBar]) {

curTrend = "D";

}

else {

curTrend = "U";

}

// -- Loop through bars. Search for

// entirely array-based approach

// in version

for (i=0; i<farback; i++) {

curBar = (BarCount - 1) - i;

// -- Have we identified a pivot? If trend is down...

if (aLLVBars[curBar] < aHHVBars[curBar]) {

// ... and had been up, this is a trend change

if (curTrend == "U") {

curTrend = "D";

// -- Capture pivot information

curPivBarIdx = curBar - aLLVBars[curBar];

aLPivs[curPivBarIdx] = 1;

aLPivLows[nLPivs] = L[curPivBarIdx];

aLPivIdxs[nLPivs] = curPivBarIdx;

nLPivs++;

}

// -- or current trend is up

} else {

if (curTrend == "D") {

curTrend = "U";

curPivBarIdx = curBar - aHHVBars[curBar];

aHPivs[curPivBarIdx] = 1;

aHPivHighs[nHPivs] = H[curPivBarIdx];

aHPivIdxs[nHPivs] = curPivBarIdx;

nHPivs++;

}

// -- If curTrend is up...else...

}

// -- loop through bars

}

// -- Basic attempt to add a pivot this logic may have missed

// -- OK, now I want to look at last two pivots. If the most

// recent low pivot is after the last high, I could

// still have a high pivot that I didn't catch

// -- Start at last bar

curBar = (BarCount-1);

candIdx = 0;

candPrc = 0;

lastLPIdx = aLPivIdxs[0];

lastLPL = aLPivLows[0];

lastHPIdx = aHPivIdxs[0];

lastHPH = aHPivHighs[0];

if (lastLPIdx > lastHPIdx) {

// -- Bar and price info for candidate pivot

candIdx = curBar - aHHVBars[curBar];

candPrc = aHHV[curBar];

if (

lastHPH < candPrc AND

candIdx > lastLPIdx AND

candIdx < curBar) {


// -- OK, we'll add this as a pivot...

aHPivs[candIdx] = 1;

// ...and then rearrange s in the

// pivot information arrays

for (j=0; j<nHPivs; j++) {

aHPivHighs[nHPivs-j] = aHPivHighs[nHPivs-

(j+1)];

aHPivIdxs[nHPivs-j] = aHPivIdxs[nHPivs-(j+1)];

}

aHPivHighs[0] = candPrc ;

aHPivIdxs[0] = candIdx;

nHPivs++;

}

} else {


// -- Bar and price info for candidate pivot

candIdx = curBar - aLLVBars[curBar];

candPrc = aLLV[curBar];

if (

lastLPL > candPrc AND

candIdx > lastHPIdx AND

candIdx < curBar) {


// -- OK, we'll add this as a pivot...

aLPivs[candIdx] = 1;

// ...and then rearrange s in the

// pivot information arrays

for (j=0; j<nLPivs; j++) {

aLPivLows[nLPivs-j] = aLPivLows[nLPivs-(j+1)];

aLPivIdxs[nLPivs-j] = aLPivIdxs[nLPivs-(j+1)];

}

aLPivLows[0] = candPrc;

aLPivIdxs[0] = candIdx;

nLPivs++;

}

}

// -- Dump inventory of high pivots for debugging



// -- OK, let's plot the pivots using arrows

PlotShapes(

IIf(aHPivs==1, shapeDownArrow, shapeNone), colorRed, 0,

High, Offset=-15);

PlotShapes(

IIf(aLPivs==1, shapeUpArrow , shapeNone), colorGreen, 0,

Low, Offset=-15);

_SECTION_END();

_SECTION_BEGIN("Formula 1");
_section_begin("background");
setchartoptions(0,chartshowarrows|chartshowdates);
pricetitle=strformat("---- {{name}} ---------- {{values}}");
title ="averages" + pricetitle;

if( paramtoggle("tooltip shows", "all values|only prices" ) )
{
tooltip=strformat("open: %g\nhigh: %g\nlow: %g\nclose: %g (%.1f%%)\nvolume: "+numtostr( v, 1 ), o, h, l, c, selectedvalue( roc( c, 1 )));
}

setchartbkcolor(paramcolor("outer panel color ",colorblack)); // color of outer border
setchartbkgradientfill( paramcolor("inner panel color upper half",colorblack),paramcolor("inner panel color lower half",colorblack)); // color of inner panel
_section_end();Plot( C, "Close", ParamColor("Color", colorDefault ), styleNoTitle | ParamStyle("Style") | GetPriceStyle() );
p=((C+L+H )/3);
r1=(p*2-L) ;
r2=p+(H-l);
r3= r2 +(H-l) ;


s1=(p*2-h) ;
s2=p-(H-l);
s3= s2 -(H-l) ;
pp=((p-r1)/2)-r1;
pp1=(p-s1)/2+s1;
Title_X = StrFormat("{{NAME}} - {{INTERVAL}} {{DATE}} Open %g, Hi %g, Lo %g, Close %g (%.1f%%) {{VALUES}}", O, H, L, C, SelectedValue( ROC( C, 1 ) ) );
Title = Title_X + "\n" +

EncodeColor(colorGreen) + "
دخول " + WriteVal(pp1, 1.2)+EncodeColor(colorRed) + "
خروج " + WriteVal(pp, 1.2)+EncodeColor(colorGold) + "


الارتكاز " + WriteVal(p, 1.2)+EncodeColor(colorGreen) + "


1 المقاومه " + WriteVal(r1, 1.2) + EncodeColor(colorGreen) + "
2 المقاومه " + WriteVal(r2, 1.2) + EncodeColor(colorGreen) + "
3 المقاومه " + WriteVal(r3, 1.2) + EncodeColor(colorRed) + "

1 الدعم " + WriteVal(s1, 1.2) + EncodeColor(colorRed) + "
2 الدعم " + WriteVal(s2, 1.2) + EncodeColor(colorRed) + "
3 الدعم " + WriteVal(s3, 1.2) + EncodeColor(colorRed) ;
_SECTION_END();


رأيك يهمني



رد مع اقتباس
إضافة رد


أدوات الموضوع

تعليمات المشاركة
لا تستطيع إضافة مواضيع جديدة
لا تستطيع الرد على المواضيع
لا تستطيع إرفاق ملفات
لا تستطيع تعديل مشاركاتك

BB code is متاحة
كود [IMG] متاحة
كود HTML معطلة

الانتقال السريع



08:01 AM