المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : تحويل كود الى مؤشر mt4



hesam55
22-04-2018, 11:15 PM
السلام عليكم ممكن تحويل هذا الكود لمؤشر mt4


//Created By ChrisMoody on 1-20-2014//Credit Goes To Chris Capre from 2nd Skies Forex
study("CM_Price-Action-Bars", overlay=true)
pctP = input(66, minval=1, maxval=99, title="Percentage Input For PBars, What % The Wick Of Candle Has To Be")pblb = input(6, minval=1, maxval=100, title="PBars Look Back Period To Define The Trend of Highs and Lows")pctS = input(5, minval=1, maxval=99, title="Percentage Input For Shaved Bars, Percent of Range it Has To Close On The Lows or Highs")spb = input(false, title="Show Pin Bars?")ssb = input(false, title="Show Shaved Bars?")sib = input(false, title="Show Inside Bars?")sob = input(false, title="Show Outside Bars?")sgb = input(false, title="Check Box To Turn Bars Gray?")
//PBar PercentagespctCp = pctP * .01pctCPO = 1 - pctCp
//Shaved Bars PercentagespctCs = pctS * .01pctSPO = pctCs
range = high - low
///PinBarspBarUp() => spb and open > high - (range * pctCPO) and close > high - (range * pctCPO) and low <= lowest(pblb) ? 1 : 0pBarDn() => spb and open < high - (range * pctCp) and close < high-(range * pctCp) and high >= highest(pblb) ? 1 : 0
//Shaved BarssBarUp() => ssb and (close >= (high - (range * pctCs)))sBarDown() => ssb and close <= (low + (range * pctCs))
//Inside BarsinsideBar() => sib and high <= high[1] and low >= low[1] ? 1 : 0outsideBar() => sob and (high > high[1] and low < low[1]) ? 1 : 0
//PinBarsbarcolor(pBarUp() ? lime : na)barcolor(pBarDn() ? red : na)//Shaved Barsbarcolor(sBarDown() ? fuchsia : na)barcolor(sBarUp() ? aqua : na)//Inside and Outside Barsbarcolor(insideBar() ? yellow : na )barcolor(outsideBar() ? orange : na )
barcolor(sgb and close ? gray : na)

المصدر

https://www.tradingview.com/script/GHnJs0X8-CM-Price-Action-Bars-Price-Patterns-That-Work/

kira-h
23-04-2018, 08:52 PM
وعليكم السلام
الكود غير مفهوم وغير واضح

hesam55
23-04-2018, 11:16 PM
استاذ حسن هذا الكود لمؤشر برايس اكشن وهوي كود من منصت tradingview (https://www.tradingview.com/script/GHnJs0X8-CM-Price-Action-Bars-Price-Patterns-That-Work/) ممكن نحوله .ex4






https://www.tradingview.com/script/G...rns-That-Work/ (https://www.tradingview.com/script/GHnJs0X8-CM-Price-Action-Bars-Price-Patterns-That-Work/)






https://www.fxprg.com/vb/clear.gif (https://www.fxprg.com/vb/newreply.php?do=newreply&p=881394)

kira-h
24-04-2018, 05:31 PM
استاذ حسن هذا الكود لمؤشر برايس اكشن وهوي كود من منصت tradingview (https://www.tradingview.com/script/GHnJs0X8-CM-Price-Action-Bars-Price-Patterns-That-Work/) ممكن نحوله .ex4






https://www.tradingview.com/script/G...rns-That-Work/ (https://www.tradingview.com/script/GHnJs0X8-CM-Price-Action-Bars-Price-Patterns-That-Work/)






https://www.fxprg.com/vb/clear.gif (https://www.fxprg.com/vb/newreply.php?do=newreply&p=881394)





تلك لغة مختلفة وهذا ليس من اختصاصي
لكن يمكنك طلب ذلك بقسم البرمجة المدفوعة والطلبات الخاصة (https://www.fxprg.com/vb/forumdisplay.php?f=211) ربما يتم تلبيته
بالتوفيق