眼镜蛇支撑阻力线指标的源代码.docx

上传人:b****3 文档编号:6047513 上传时间:2023-05-09 格式:DOCX 页数:42 大小:153.70KB
下载 相关 举报
眼镜蛇支撑阻力线指标的源代码.docx_第1页
第1页 / 共42页
眼镜蛇支撑阻力线指标的源代码.docx_第2页
第2页 / 共42页
眼镜蛇支撑阻力线指标的源代码.docx_第3页
第3页 / 共42页
眼镜蛇支撑阻力线指标的源代码.docx_第4页
第4页 / 共42页
眼镜蛇支撑阻力线指标的源代码.docx_第5页
第5页 / 共42页
眼镜蛇支撑阻力线指标的源代码.docx_第6页
第6页 / 共42页
眼镜蛇支撑阻力线指标的源代码.docx_第7页
第7页 / 共42页
眼镜蛇支撑阻力线指标的源代码.docx_第8页
第8页 / 共42页
眼镜蛇支撑阻力线指标的源代码.docx_第9页
第9页 / 共42页
眼镜蛇支撑阻力线指标的源代码.docx_第10页
第10页 / 共42页
眼镜蛇支撑阻力线指标的源代码.docx_第11页
第11页 / 共42页
眼镜蛇支撑阻力线指标的源代码.docx_第12页
第12页 / 共42页
眼镜蛇支撑阻力线指标的源代码.docx_第13页
第13页 / 共42页
眼镜蛇支撑阻力线指标的源代码.docx_第14页
第14页 / 共42页
眼镜蛇支撑阻力线指标的源代码.docx_第15页
第15页 / 共42页
眼镜蛇支撑阻力线指标的源代码.docx_第16页
第16页 / 共42页
眼镜蛇支撑阻力线指标的源代码.docx_第17页
第17页 / 共42页
眼镜蛇支撑阻力线指标的源代码.docx_第18页
第18页 / 共42页
眼镜蛇支撑阻力线指标的源代码.docx_第19页
第19页 / 共42页
眼镜蛇支撑阻力线指标的源代码.docx_第20页
第20页 / 共42页
亲,该文档总共42页,到这儿已超出免费预览范围,如果喜欢就下载吧!
下载资源
资源描述

眼镜蛇支撑阻力线指标的源代码.docx

《眼镜蛇支撑阻力线指标的源代码.docx》由会员分享,可在线阅读,更多相关《眼镜蛇支撑阻力线指标的源代码.docx(42页珍藏版)》请在冰点文库上搜索。

眼镜蛇支撑阻力线指标的源代码.docx

眼镜蛇支撑阻力线指标的源代码

眼镜蛇支撑阻力线指标的源代码在此,你研究吧

/*

GeneratedbyEX4-TO-MQ4decompilerV4.0.224.1[]

*/

code"

#propertycopyright"Domas4amdTraderathome-publicdomain

#propertylink"n/a"

#property

indicator_chart_window

#property

indicator_buffers5

#property

indicator_color1Green

#property

indicator_color2FireBrick

#property

indicator_color3Lime

#property

indicator_color4Red

#property

indicator_color5CLR_NONE

externboolIndicator_On?

=TRUE;

externstringPart_1="ShiftTz&SelectPivotFormula:

";

externintHrsServerTzFromGMT=0;

externintHrsChoiceTzFromGMT=0;

externintShow_1Daily_2FibonacciPivots=2;

externstringPart_2="SessionBoxColors&DayCandle:

";

externboolShowTodayBoxColor=FALSE;

externcolorTodayBoxColor=C'0x1E,0x21,0x24';

externboolShowYesterdayBoxColor=TRUE;

externcolorYesterdayBoxColor=C'0x37,0x37,0x37';

externboolShow_DayCandle=TRUE;

externboolShow_DayCandle_PriceLabel=FALSE;

externcolorPriceLabel_StaticColor=CornflowerBlue;

externcolorPriceLabel_UPColor=LimeGreen;

externcolorPriceLabel_DOWNColor=Red;

externcolorPriceLabel_PointerColor=White;

externintPriceLabel_FontSize=16;

externintShift_DayCandle_Right=6;

externintShift_PriceLabel_Right=21;

externintShift_PricePointer_Right=8;

externstringPart_3="Pivotlinesplacementandcolors,etc:

";

externstringNote1="Startwithfullscreenlines,enter\'1\'";

externstringNote2="StartlinesatDaySeparator,enter\'2\'";

externstringNote3="Startlinesatcurrentcandle,enter\'3\'";

externintEnter_LinePlacement_Number=2;

externstringNote4="LinePlacements1&2,canendat";

externstringNote5="currentcandleinsteadofrightmargin.";

externboolLimit_Lines_To_Current_Candle=FALSE;

externcolorCentralPivotColor=Gray;

externintCentralPivotLineStyle_01234=0;

externintCentralPivotSolidLineThickness=2;

externcolorR_Color=FireBrick;

externintR_LineStyle_01234=0;

externintR_SolidLineThickness=1;

externcolorS_Color=Green;

externintS_LineStyle_01234=0;

externintS_SolidLineThickness=1;

externcolorMidPivotsColor=C'0x6C,0x6C,0x00';

externintMidPivotsLineStyle_01234=2;

externintMidPivotsLineThickness=1;

externboolShowMidPivots=TRUE;

externcolorQtrPivotsColor=C'0x5C,0x4E,0xB1';

externintQtrPivotsLineStyle_01234=2;

externintQtrPivotsLineThickness=1;

externboolShowQtrPivots=FALSE;

externcolorTodayOpenColor=MediumVioletRed;

externintTodayOpenLineStyle_01234=2;

externintTodayOpenSolidLineThickness=1;

externboolShowTodayOpen=TRUE;

externcolorCamarillaColor=C'0x2B,0xA8,0xA5';

externintCamarillaLineStyle_01234=2;

externintCamarillaSolidLineThickness=1;

externboolShowCamarilla=FALSE;

externcolorYesterdayHighLowColor=C'0x01,0x95,0xAF';

externintHighLowLineStyle_01234=0;

externintHighLowSolidLineThickness=1;

externstringNote6="Settingsfor\'TodayZone\'canbe";

externstringNote7="differentwithLinePlacement2&3.";

externintToday_yHL_LineStyle_01234=2;

externintToday_yHL_SolidLineThickness=1;

externboolIgnore_MaxRight_LinePlacement=TRUE;

externboolShowYesterdayHighLow=TRUE;

externstringPart_4="Pivotlabelscolor&placement,etc:

";

externcolorPivotLabelsColor=DimGray;

externstringInput_PivotLabelsFontStyle="ArialBold";

externintPivotLabelsFontSize=9;

externboolSubordinate_PivotLabels=FALSE;

externboolShow_Price_in_LineLabels=FALSE;

externstringNote8="Fullscreen_items_workonlywhen";

externstringNote9="linesarefullscreenwide.";

externboolFullscreen_MarginLabels=FALSE;

externintFullscreen_shift_lineLabels_LR=0;

externstringNote10="Labels_MaxRightOverrideworks";

externstringNote11="onallLinePlacementchoices.";

externboolLabels_MaxRight_Override=FALSE;

externstringNote12="ShiftforyH-yL-Camarillalabelsworks";

externstringNote13="evenwithLabels_MaxrRightOverride.";

externintShift_yH_yL_labels_left=0;

externintShift_CamarillaLabels_left=0;

externboolScroll_Compensator=TRUE;

externintScroll_Left_Adjustment=140;

externintRelabeler_Adjustment=10;

externstringPart_5="PeriodSeparatorlines&labels:

";

externcolorPeriodSeparatorLinesColor=C'0x6C,0x6C,0x00';

externintSeparatorLinesStyle_01234=0;

externintSeparatorLinesThickness=1;

externboolShowTodaySeparatorLine=TRUE;

externboolShowYesterdaySeparatorLine=TRUE;

externcolorPeriodSeparatorsLabelsColor=Gray;

externstringInput_SeparatorFontStyle="VerdanaBold";

externintSeparatorLabelFontSize=9;

externboolSubordinate_SeparatorLabels=FALSE;

externintPlaceAt_TopBot_12_OfChart=1;

externintLabel_Simple_or_Detailed_12=2;

externboolShowPeriodSeparatorLabels=TRUE;

externstringPart_7="DebugSection:

";

externboolShow_Relabeler_Comment=FALSE;

externboolShow_Data_Comment=FALSE;

externcolorCommentBox_BackgroundColor=Black;

intgi_556;

boolgi_560;

boolgi_564;

intgi_568;

stringgs_572;

stringgs_580;

doubleg_ibuf_588[];

doubleg_ibuf_592[];

doubleg_ibuf_596[];

doubleg_ibuf_600[];

intg_shift_604;

doubleg_bid_612;

intinit(){

if(Ask>10.0)gi_568=2;

elsegi_568=4;

SetIndexBuffer(0,g_ibuf_588);

SetIndexBuffer(1,g_ibuf_592);

SetIndexBuffer(2,g_ibuf_600);

SetIndexBuffer(3,g_ibuf_596);

if(Show_DayCandle){

for(intli_0=0;li_0<4;li_0++){

SetIndexStyle(li_0,DRAW_HISTOGRAM);

SetIndexShift(li_0,Shift_DayCandle_Right);

SetIndexLabel(li_0,"[TzPivotsDDayCandle]");

}

}

return(0);

}

intdeinit(){

stringl_name_8;

intl_objs_total_0=ObjectsTotal();

for(intl_objs_total_4=l_objs_total_0;l_objs_total_4>=0;l_objs_total_4--)l_name_8=ObjectName(l_objs_total_4);

if(StringSubstr(l_name_8,0,10)=="[TzPivotsD")ObjectDelete(l_name_8);

}

gi_560=FALSE;

gi_564=FALSE;

Comment("");

return(0);

}

intstart(){intli_8;

intli_16;

doublel_iopen_52;

doublel_iclose_68;

intli_76;

intli_80;

intli_84;

intli_88;

stringl_name_100;

stringl_name_108;

doublel_pips_116;

doublel_iopen_124;

doublel_iclose_132;

doubleld_140;

intli_148;

intl_count_152;

intli_156;

intl_objs_total_160;

stringl_name_168;

doublel_datetime_176;

doublel_bid_184;

doublel_bid_192;

colorl_color_200;

colorl_color_204;

intli_208;

stringls_212;

stringl_dbl2str_220;

stringls_228;

stringls_236;

stringl_fontname_244;

intl_fontsize_252;

stringl_text_256;

stringl_text_264;

intli_272;

intli_276;

intli_280;

intli_284;

intli_296;

stringls_300;

doubleld_308;

doubleld_316;

doubleld_324;

doubleld_332;

doubleld_340;

doubleld_348;

doubleld_380;

doubleld_388;

doubleld_396;

doubleld_404;

doubleld_412;

doubleld_420;

doubleld_428;

doubleld_436;

doubleld_444;

doubleld_452;

doubleld_468;

doubleld_476;

doubleld_484;

doubleld_492;

intli_500;

intli_504;

intli_508;

intli_512;

stringls_516;

stringls_524;

stringls_532;

stringls_540;

intli_548;

intli_552;

stringls_556;

if(Indicator_On?

==FALSE){

deinit();

return(0);

}

if(Period()>PERIOD_D1){

deinit();

return(-1);

}

deinit();

ComputeDayIndices(HrsServerTzFromGMT,HrsChoiceTzFromGMT,li_76,li_84,li_88);

intli_0=Time[1];

if(Time[0]>iTime(NULL,PERIOD_H1,li_76))li_0=iTime(NULL,PERIOD_H1,li_76);

intl_datetime_4=iTime(NULL,PERIOD_H1,li_84);

doubleld_44=-99999;

doubleld_60=99999;

for(intli_92=li_84;li_92>=li_88;li_92--){

if(l_iopen_52==0.0)l_iopen_52=iOpen(NULL,PERIOD_H1,li_92);

ld_44=MathMax(iHigh(NULL,PERIOD_H1,li_92),ld_44);

ld_60=MathMin(iLow(NULL,PERIOD_H1,li_92),ld_60);

l_iclose_68=iClose(NULL,PERIOD_H1,li_92);

}

doublel_iopen_36=iOpen(NULL,PERIOD_H1,li_76);

doubleld_20=-99999;

doubleld_28=99999;

for(intli_96=li_76;li_96>=0;li_96--){

ld_20=MathMax(ld_20,iHigh(NULL,PERIOD_H1,li_96));

ld_28=MathMin(ld_28,iLow(NULL,PERIOD_H1,li_96));

}

if(ShowTodayBoxColor){

l_name_100="[TzPivotsDTodayBox]";

ObjectSet(l_name_100,OBJPROP_TIME1,iTime(NULL,PERIOD_H1,li_76));

ObjectSet(l_name_100,OBJPROP_PRICE1,ld_20);

if(ShowYesterdayBoxColor){

ObjectCreate(l_name_108,OBJ_RECTANGLE,0,0,0);

ObjectSet(l_name_108,OBJPROP_TIME1,iTime(NULL,PERIOD_H1,li_84));

ObjectSet(l_name_108,OBJPROP_TIME2,iTime(NULL,PERIOD_H1,li_76));

}

if(Show_DayCandle){

l_pips_116=1;

if(gi_568==3||gi_568==5)l_pips_116=10.0;

g_shift_604=iBarShift(NULL,PERIOD_D1,iTime(NULL,PERIOD_H1,li_76));

l_iopen_124=iOpen(NULL,PERIOD_H1,li_76);

l_iclose_132=iClose(NULL,PERIOD_H1,li_80);

ld_140=(l_iclose_132-l_iopen_124)/(Point*l_pips_116);

li_148=0;

if(ld_140>0.0){

g_ibuf_588[li_148]=ld_20;

g_ibuf_592[li_148]=ld_28;

}else{

g_ibuf_588[li_148]=ld_28;

g_ibuf_592[li_148]=ld_20;

}

g_ibuf_596[li_148]=l_iopen_124+0.000001;

g_ibuf_600[li_148]=l_iclose_132;

l_count_152=0;

li_156=Bars-1;

while(l_count_152<4){

SetIndexDrawBegin(l_count_152,li_156);

l_count_152++;

}

}

if(Show_DayCandle_PriceLabel){

l_objs_total_160=ObjectsTotal();

for(intl_objs_total_164=l_objs_total_160;l_objs_total_164>=0;l_objs_total_1

64--){

l_name_168=ObjectName(l_objs_total_164);

if(StringSubstr(l_name_168,12,11)=="CandlePrice")ObjectDelete(l_name_1

68);

if(StringSubstr(l_name_168,12,12)=="PricePointer")ObjectDelete(l_name_1

68);

}

l_datetime_176=Time[0];

l_bid_184=Bid;

l_bid_192=Bid;

l_color_200=PriceLabel_StaticColor;

l_color_204=PriceLabel_PointerColor;

if(Bid>g_bid_612)l_color_200=PriceLabel_UPColor;

if(Bid

g_bid_612=Bid;

ls_212=StringSubstr(Symbol(),3,3);

if(ls_212=="JPY")li_208=2;

展开阅读全文
相关资源
猜你喜欢
相关搜索
资源标签

当前位置:首页 > 自然科学 > 物理

copyright@ 2008-2023 冰点文库 网站版权所有

经营许可证编号:鄂ICP备19020893号-2