This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // call the plugin | |
| aPlugInResult = SimplePluginFunc1(Close, 5); | |
| // plot plugin's result | |
| Plot(aPlugInResult, "aPlugInResult", colorRed); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| _SECTION_BEGIN("First DLL Plugin"); | |
| SetChartOptions(0,chartShowArrows|chartShowDates); | |
| _N(Title = StrFormat("{{NAME}} - {{INTERVAL}} {{DATE}} Open %g, Hi %g, Lo %g, Close %g (%.1f%%) {{VALUES}}", O, H, L, C, SelectedValue( ROC( C, 1 ) ) )); | |
| Plot( C, "Close", ParamColor("Color", colorDefault ), styleNoTitle | ParamStyle("Style") | GetPriceStyle() ); | |
| Ma1 = SimplePluginFunc1(C,10); | |
| Plot(Ma1,"Moving Average",colorRed); | |
| _SECTION_END(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| _SECTION_BEGIN("RKR_AutoTrade1V00 "); | |
| Title = " "; | |
| EnableRealTimeControl = ParamList("Enable Controls", "No|Yes", 0); | |
| EnableStrategy = ParamList("Enable Strategy", "No|Yes", 0); | |
| StrategyType = ParamList("StrategyType", "Long/Short|Long|Short", 0); | |
| EnableAutoTrade = ParamList("Enable Autotrade", "No|Yes", 0); | |
| BuyPriceSelection = ParamList("Buy Price", "Bid Price|Ask Price|LTP", 0); | |
| SellPriceSelection = ParamList("Sell Price", "Ask Price|Bid Price|LTP", 0); | |
| ProductType = ParamList("Product Type", "MIS|NRML", 0); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| if(EnableStrategy == "Yes") | |
| { | |
| /*~~~~~~~~~~~~~~~~AutoTrade Strategy~~~~~~~~~~~~~~~~~~~~~~*/ | |
| /* | |
| You Have to replace the below code with your strategy | |
| Strictly don't use the bellow Buy/Sell code for real Trading | |
| */ | |
| /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/ | |
| Buy = Cross(MACD(12, 26), Signal(12, 26, 9)); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| fh = fopen( "c://AmiBackup//"+Name()+".csv", "w"); | |
| if( fh ) | |
| { | |
| fputs( "Ticker,Date,Open,High,Low,Close,Volume | |
| ", fh ); | |
| y = Year(); | |
| m = Month(); | |
| d = Day(); | |
| //r = Hour(); | |
| //e = Minute(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| study("Supertrend Marketcalls", overlay = true) | |
| Factor=input(4, minval=1,maxval = 100) | |
| Pd=input(10, minval=1,maxval = 100) | |
| Up=hl2-(Factor*atr(Pd)) | |
| Dn=hl2+(Factor*atr(Pd)) | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| study("Supertrend V1.0 - Marketcalls", overlay = true) | |
| Factor=input(3, minval=1,maxval = 100) | |
| Pd=input(7, minval=1,maxval = 100) | |
| Up=hl2-(Factor*atr(Pd)) | |
| Dn=hl2+(Factor*atr(Pd)) | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| _SECTION_BEGIN("William VIX FIX"); | |
| WVF = (HHV (Close,22) - Low)/(HHV(Close,22))*100; | |
| Plot(WVF,"William VIX FIX", colorRed); | |
| _SECTION_END(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* Done by Rajandran R */ | |
| /* Author of www.marketcalls.in */ | |
| _SECTION_BEGIN("N Bar High/Low Dots"); | |
| SetBarsRequired(100000,0); | |
| GraphXSpace = 15; | |
| SetChartOptions(0,chartShowArrows|chartShowDates); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* Done by Rajandran R */ | |
| /* Author of www.marketcalls.in */ | |
| /* Date : 10th Dec 2014 */ | |
| function GetSecondNum() | |
| { | |
| Time = Now( 4 ); | |
| Seconds = int( Time % 100 ); | |
| Minutes = int( Time / 100 % 100 ); | |
| Hours = int( Time / 10000 % 100 ); |