Home › Forums › CDC Forums › Supporting Members Area — รวบรวมสูตร Downloads และระบบการเทรด › รบกวนขอสูตร Hi – Lo 5 สำหรับ Metastock และ Amibroker ครับ
- This topic has 3 replies, 3 voices, and was last updated 7 years, 7 months ago by
dreamscat.
-
AuthorPosts
-
-
01/08/2017 at 2:33 pm #16860
beamosk120
Participantรบกวนขอสูตร Hi – Lo 5 สำหรับ Metastock และ Amibroker ครับ
ขอบคุณครับ
-
02/08/2017 at 9:41 pm #16880
dreamscat
Keymaster- สูตรสำหรับ Metastock ครับ
{CDC Hi-Lo 5 V.20150502}
Prd:=5;
Upper:=Ref(HHV(H,Prd),-1);
Lower:=Ref(LLV(L,Prd),-1);
Buy:=Cross(H,Upper);
Sell:=Cross(Lower,L);
Bullish:=BarsSince(Buy)<BarsSince(Sell);
Bearish:=BarsSince(Sell)<BarsSince(Buy);
BuyPrice:=ValueWhen(1,Bullish AND Ref(Bearish,-1),Upper);
ProfitLong:=((C-BuyPrice)/BuyPrice);
SellPrice:=ValueWhen(1,Bearish AND Ref(Bullish,-1),Lower);
ProfitShort:=((SellPrice-C)/SellPrice);
BuyPrice; SellPrice;2. สูตรสำหรับ Amibroker ครับ
//CDC Hi-Lo 5 V.20150502
Prd=5;
Upper=Ref(HHV(H,Prd),-1);
Lower=Ref(LLV(L,Prd),-1);
Buy=Cross(H,Upper);
Sell=Cross(Lower,L);
Bullish=BarsSince(Buy)<BarsSince(Sell);
Bearish=BarsSince(Sell)<BarsSince(Buy);
Buy1=Buy AND Ref(bearish,-1);
Sell1=Sell AND Ref(bullish,-1);
Plot(upper,”Upper”,colorGreen,styleDashed);
Plot(lower,”Lower”,colorRed,styleDashed);
PlotShapes(Buy1*shapeUpArrow,colorGreen,0,L);
PlotShapes(sell1*shapeDownArrow,colorRed,0,H);
Plot(C,”Close”,IIf(bullish,colorGreen,IIf(bearish,colorRed,colorGrey40)),styleCandle); -
04/08/2017 at 2:49 pm #16895
AE2002028
Participantสูตรสำหรับ Metastock ครับ
BuyPrice:=ValueWhen(1,Bullish AND Ref(Bearish,-1),Upper);
ProfitLong:=((C-BuyPrice)/BuyPrice);
SellPrice:=ValueWhen(1,Bearish AND Ref(Bullish,-1),Lower);
ProfitShort:=((SellPrice-C)/SellPrice);
BuyPrice; SellPrice;ใช้ยังไงครับ
-
05/08/2017 at 12:23 am #16903
dreamscat
Keymasterเป็นสูตร indicator สำหรับ Metastock ครับ (ลากมาใส่ในกราฟได้เลยครับ) หรือถ้าเป็นสูตรดั้งเดิมจริงๆจะเป็นสูตรนี้ครับ
{CDC Hi-Lo 5.0}
Prd:=5;
HLne:=Ref(HHV(H,Prd),-1);
LLne:=Ref(LLV(L,Prd),-1);
HLne; LLne;
-
-
AuthorPosts
- You must be logged in to reply to this topic.

