: | : | :期货量化学习 | :期货量化 |
返回列表 发帖

[MetaStock] Cog Stochastic and Fx Trend Trading System

[MetaStock] Cog Stochastic and Fx Trend Trading System

Cog Stocastic Indicator
Submit by JamesUK 31/10/2010

Time Frame 30 min or higher;

Currency pairs: any;

Indicator:

COGSTOCH Indicator;

FX Trend;

Pivot point multitimframe;

Polynomial Regression trading
rules for opening orders

Buy order : open buy order when the indicator Cogstochastic crosses upward into aqua bands and fx trend indicator is color aqua;

Stop loss 2 pips abpve previous swing;

Sell order :open Sell order when the indicator Cogstochastic crosses downward into red bands and fx trend indicator is color red;
Stop loss 2 pips below previous swing;

Exit position, options,:

1)On the levels pivot;

2) when FX trend indicator change color;

3) with profit target predetermined depends by time frame and currency pairs.

This is an strategy for binary option. High Low binary option trading strategy (60 min)

Time Frame 30 min.

In the pictures Cog Stochastic and FX Trend forex system in action.

Share your opinion, can help everyone to understand the forex strategy.

论坛官方微信、群(期货热点、量化探讨、开户与绑定实盘)
 
期货论坛 - 版权/免责声明   1.本站发布源码(包括函数、指标、策略等)均属开放源码,用意在于让使用者学习程序化语法撰写,使用者可以任意修改语法內容并调整参数。仅限用于个人学习使用,请勿转载、滥用,严禁私自连接实盘账户交易
  2.本站发布资讯(包括文章、视频、历史记录、教材、评论、资讯、交易方案等)均系转载自网络主流媒体,内容仅为作者当日个人观点,本网转载此文出于传递更多信息之目的,并不意味着赞同其观点或证实其描述。本网不对该类信息或数据做任何保证。不对您构成任何投资建议,不能依靠信息而取代自身独立判断,不对因使用本篇文章所诉信息或观点等导致的损失承担任何责任。
  3.本站发布资源(包括书籍、杂志、文档、软件等)均从互联网搜索而来,仅供个人免费交流学习,不可用作商业用途,本站不对显示的内容承担任何责任。请在下载后24小时内删除。如果喜欢,请购买正版,谢谢合作!
  4.龙听期货论坛原创文章属本网版权作品,转载须注明来源“龙听期货论坛”,违者本网将保留追究其相关法律责任的权力。本论坛除发布原创文章外,亦致力于优秀财经文章的交流分享,部分文章推送时若未能及时与原作者取得联系并涉及版权问题时,请及时联系删除。联系方式:http://www.qhlt.cn/thread-262-1-1.html
如何访问权限为100/255贴子:/thread-37840-1-1.html;注册后仍无法回复:/thread-23-1-1.html;微信/QQ群:/thread-262-1-1.html;网盘链接失效解决办法:/thread-93307-1-1.html

齿轮随机和外汇趋势交易系统
嵌齿轮定指标

由JamesUK提交2010年10月31日

时限30分钟或以上;

货币对:任意;

指标:
COGSTOCH指标;

外汇趋势 ;

枢轴点多帧 ;

多项式回归交易
开仓规则

买单:当指标Cogstochastic向上跨入水色带且fx趋势指标为有色水色时,打开买入订单 ;

止损较上个交易日高出2个基点;

卖单:当指标Cogstochastic向下穿过红色带并且FX趋势指标为红色时,打开卖单。
止损比前一个波动低2个基点;

出口位置,选项:

1)在水平轴上;

2)当外汇趋势指标改变颜色时;

3)预定的利润目标取决于时间范围和货币对。


这是二元期权的策略。高低二元期权交易策略(60分钟)

时限30分钟


图片中的Cog随机指标和FX Trend 外汇系统 正在运行。
如何访问权限为100/255贴子:/thread-37840-1-1.html;注册后仍无法回复:/thread-23-1-1.html;微信/QQ群:/thread-262-1-1.html;网盘链接失效解决办法:/thread-93307-1-1.html

TOP

COGSTOCH指标
  1. //+------------------------------------------------------------------+
  2. //|                                                     COGSTOCH.mq4 |
  3. //| Original Code from NG3110@latchess.com                           |                                    
  4. //| Linuxser 2007 for TSD    http://www.forex-tsd.com/               |
  5. //| Stoch Modified Brooky    http://www.brooky-indicators.com        |
  6. //+------------------------------------------------------------------+
  7. #property  copyright "ANG3110@latchess.com"
  8. //---------ang_pr (Din)--------------------
  9. #property indicator_separate_window
  10. #property indicator_buffers 7
  11. #property indicator_color1 Gray
  12. #property indicator_color2 IndianRed
  13. #property indicator_color3 CadetBlue
  14. #property indicator_color4 Pink
  15. #property indicator_color5 PowderBlue
  16. #property indicator_color6 Blue
  17. #property indicator_color7 Red


  18. #property indicator_level1 80
  19. #property indicator_level2 50
  20. #property indicator_level3 20
  21. #property indicator_level4 100
  22. #property indicator_level5 00

  23. #property indicator_style1 1
  24. #property indicator_style7 2

  25. #property indicator_width2 2
  26. #property indicator_width3 2


  27. //-----------------------------------
  28. extern int bars_back = 192;
  29. extern int stoch_k = 14;
  30. extern int stoch_d = 5;
  31. extern int stoch_s = 3;


  32. extern int m = 5;
  33. extern int i = 1;
  34. extern double kstd = 1.618;
  35. extern double kstd.internal = 0.8;
  36. extern int sName = 2;
  37. //-----------------------
  38. double fx[], sqh[], sql[], stdh[], stdl[], stochdata[], stochsdata[];
  39. double ai[10,10], b[10], x[10], sx[20];
  40. double sum;
  41. int    ip, p, n, f;
  42. double qq, mm, tt;
  43. int    ii, jj, kk, ll, nn;
  44. double sq, std;
  45. //*******************************************
  46. int init()
  47. {
  48.    IndicatorShortName("COGSTOCH: Mod by Brooky-Indicators.com");
  49.    
  50.    SetIndexBuffer(0, fx);SetIndexStyle(0, DRAW_LINE);
  51.    SetIndexBuffer(1, sqh);
  52.    SetIndexBuffer(2, sql);
  53.    SetIndexBuffer(3, stdh);
  54.    SetIndexBuffer(4, stdl);
  55.    SetIndexBuffer(5, stochdata);SetIndexStyle(5, DRAW_LINE);
  56.    SetIndexBuffer(6, stochsdata);SetIndexStyle(6, DRAW_LINE);
  57.    p = MathRound(bars_back);
  58.    
  59.    nn = m + 1;
  60.    ObjectCreate("sstart" + sName, 22, 0, Time[p], fx[p]);
  61.    ObjectSet("sstart" + sName, 14, 159);
  62.    return(0);
  63. }
  64. //----------------------------------------------------------
  65. int deinit()
  66. {
  67.    ObjectDelete("sstart" + sName);
  68. }
  69. //**********************************************************************************************
  70. int start()
  71. {
  72.    int mi;
  73. //-------------------------------------------------------------------------------------------
  74.    ip = iBarShift(Symbol(), Period(), ObjectGet("sstart" + sName, OBJPROP_TIME1));
  75.    p = bars_back;
  76.    sx[1] = p + 1;
  77.    SetIndexDrawBegin(0, Bars - p - 1);
  78.    SetIndexDrawBegin(1, Bars - p - 1);
  79.    SetIndexDrawBegin(2, Bars - p - 1);
  80.    SetIndexDrawBegin(3, Bars - p - 1);
  81.    SetIndexDrawBegin(4, Bars - p - 1);
  82. //----------------------sx-------------------------------------------------------------------

  83.      int rlimit;
  84.      int rcounted_bars=IndicatorCounted();
  85.   //---- check for possible errors
  86.      if(rcounted_bars<0) return(-1);
  87.   //---- the last counted bar will be recounted
  88.      if(rcounted_bars>0) rcounted_bars--;
  89.      rlimit=Bars-rcounted_bars;
  90.   //---- main loop
  91.      for(int ri=0; ri<rlimit; ri++)
  92.        {
  93.       
  94.        stochdata[ri]= iStochastic(NULL,0,stoch_k,stoch_d,stoch_s,MODE_SMA,0,MODE_MAIN,ri);
  95.        stochsdata[ri]= iStochastic(NULL,0,stoch_k,stoch_d,stoch_s,MODE_SMA,0,MODE_SIGNAL,ri);
  96.        }


  97.    for(mi = 1; mi <= nn * 2 - 2; mi++)
  98.    {
  99.       sum = 0;
  100.       for(n = i; n <= i + p; n++)
  101.       {
  102.          sum += MathPow(n, mi);
  103.       }
  104.       sx[mi + 1] = sum;
  105.    }  
  106. //----------------------syx-----------
  107.    for(mi = 1; mi <= nn; mi++)
  108.    {
  109.    
  110.       sum = 0.00000;
  111.       for(n = i; n <= i + p; n++)
  112.       {
  113.          if(mi == 1)
  114.             sum += iStochastic(NULL,0,stoch_k,stoch_d,stoch_s,MODE_SMA,0,MODE_MAIN,n);//rsi_period  iRSI(NULL,0,rsi_period,prICE_CLOSE,n)
  115.          else
  116.             sum += iStochastic(NULL,0,stoch_k,stoch_d,stoch_s,MODE_SMA,0,MODE_MAIN,n) * MathPow(n, mi - 1);
  117.       }
  118.       b[mi] = sum;
  119.    }
  120. //===============Matrix=======================================================================================================
  121.    for(jj = 1; jj <= nn; jj++)
  122.    {
  123.       for(ii = 1; ii <= nn; ii++)
  124.       {
  125.          kk = ii + jj - 1;
  126.          ai[ii, jj] = sx[kk];
  127.       }
  128.    }  
  129. //===============Gauss========================================================================================================
  130.    for(kk = 1; kk <= nn - 1; kk++)
  131.    {
  132.       ll = 0; mm = 0;
  133.       for(ii = kk; ii <= nn; ii++)
  134.       {
  135.          if(MathAbs(ai[ii, kk]) > mm)
  136.          {
  137.             mm = MathAbs(ai[ii, kk]);
  138.             ll = ii;
  139.          }
  140.       }
  141.       if(ll == 0)
  142.          return(0);   

  143.       if(ll != kk)
  144.       {
  145.          for(jj = 1; jj <= nn; jj++)
  146.          {
  147.             tt = ai[kk, jj];
  148.             ai[kk, jj] = ai[ll, jj];
  149.             ai[ll, jj] = tt;
  150.          }
  151.          tt = b[kk]; b[kk] = b[ll]; b[ll] = tt;
  152.       }  
  153.       for(ii = kk + 1; ii <= nn; ii++)
  154.       {
  155.          qq = ai[ii, kk] / ai[kk, kk];
  156.          for(jj = 1; jj <= nn; jj++)
  157.          {
  158.             if(jj == kk)
  159.                ai[ii, jj] = 0;
  160.             else
  161.                ai[ii, jj] = ai[ii, jj] - qq * ai[kk, jj];
  162.          }
  163.          b[ii] = b[ii] - qq * b[kk];
  164.       }
  165.    }  
  166.    x[nn] = b[nn] / ai[nn, nn];
  167.    for(ii = nn - 1; ii >= 1; ii--)
  168.    {
  169.       tt = 0;
  170.       for(jj = 1; jj <= nn - ii; jj++)
  171.       {
  172.          tt = tt + ai[ii, ii + jj] * x[ii + jj];
  173.          x[ii] = (1 / ai[ii, ii]) * (b[ii] - tt);
  174.       }
  175.    }
  176. //===========================================================================================================================
  177.    for(n = i; n <= i + p; n++)
  178.    {
  179.       sum = 0;
  180.       for(kk = 1; kk <= m; kk++)
  181.       {
  182.          sum += x[kk + 1] * MathPow(n, kk);
  183.       }
  184.       fx[n] = x[1] + sum;
  185.    }
  186. //-----------------------------------Std-----------------------------------------------------------------------------------
  187.    sq = 0.0;
  188.    for(n = i; n <= i + p; n++)
  189.    {
  190.       sq += MathPow(iStochastic(NULL,0,stoch_k,stoch_d,stoch_s,MODE_SMA,0,MODE_MAIN,n) - fx[n], 2);
  191.    }
  192.    sq = MathSqrt(sq / (p + 1)) * kstd;
  193.    std = iStdDevOnArray(stochdata,0,p,0,MODE_SMA,i) *kstd.internal;
  194.    for(n = i; n <= i + p; n++)
  195.    {
  196.       sqh[n] = fx[n] + sq;
  197.       sql[n] = fx[n] - sq;
  198.       stdh[n] = fx[n] + std;
  199.       stdl[n] = fx[n] - std;
  200.    }
  201. //-------------------------------------------------------------------------------
  202.    ObjectMove("sstart" + sName, 0, Time[p], fx[p]);
  203. //----------------------------------------------------------------------------------------------------------------------------
  204.    return(0);
  205. }
  206. //==========================================================================================================================   
复制代码
如何访问权限为100/255贴子:/thread-37840-1-1.html;注册后仍无法回复:/thread-23-1-1.html;微信/QQ群:/thread-262-1-1.html;网盘链接失效解决办法:/thread-93307-1-1.html

TOP

枢轴点多时间框架(Pivot point multitimframe
  1. /*
  2.    Generated by EX4-TO-MQ4 decompiler V4.0.224.1 []
  3.    Website: http://purebeam.biz
  4.    E-mail : purebeam@gmail.com
  5. */
  6. #property copyright "Copyright ?2004, MetaQuotes Software Corp."
  7. #property link      "http://www.metaquotes.net"

  8. #property indicator_chart_window
  9. #property indicator_buffers 4
  10. #property indicator_color1 CLR_NONE
  11. #property indicator_color2 Black
  12. #property indicator_color3 Black
  13. #property indicator_color4 Black

  14. extern bool midpivots = FALSE;
  15. extern bool Fhr = FALSE;
  16. extern bool daily = TRUE;
  17. extern bool weekly = TRUE;
  18. extern bool monthly = TRUE;
  19. extern int Period1 = 1440;
  20. double gd_100 = 0.0;
  21. double gd_108 = 0.0;
  22. double gd_116 = 0.0;
  23. double gd_unused_124 = 0.0;
  24. double gd_132 = 0.0;
  25. double gd_140 = 0.0;
  26. double gd_unused_148 = 0.0;
  27. double gd_unused_156 = 0.0;
  28. double gd_unused_164 = 0.0;
  29. double g_price_172 = 0.0;
  30. double gd_180 = 0.0;
  31. double g_price_188;
  32. double g_price_196;
  33. double g_price_204;
  34. double g_price_212;
  35. double g_price_220;
  36. double g_price_228;
  37. double g_price_236;
  38. double g_price_244;
  39. double g_price_252;
  40. double g_price_260;
  41. double g_price_268;
  42. double g_price_276;
  43. double gd_284 = 0.0;
  44. double gd_292 = 0.0;
  45. double gd_300 = 0.0;
  46. double gda_308[2][6];
  47. double g_ibuf_312[];
  48. double gd_316 = 0.0;
  49. double gd_324 = 0.0;
  50. double gd_332 = 0.0;
  51. double gd_unused_340 = 0.0;
  52. double gd_348 = 0.0;
  53. double gd_356 = 0.0;
  54. double gd_unused_364 = 0.0;
  55. double gd_unused_372 = 0.0;
  56. double gd_unused_380 = 0.0;
  57. double g_price_388 = 0.0;
  58. double gd_396 = 0.0;
  59. double g_price_404;
  60. double g_price_412;
  61. double g_price_420;
  62. double g_price_428;
  63. double g_price_436;
  64. double g_price_444;
  65. double g_price_452;
  66. double g_price_460;
  67. double g_price_468;
  68. double g_price_476;
  69. double g_price_484;
  70. double g_price_492;
  71. double gd_500 = 0.0;
  72. double gd_508 = 0.0;
  73. double gd_516 = 0.0;
  74. double gda_524[2][6];
  75. double g_ibuf_528[];
  76. double gd_532 = 0.0;
  77. double gd_540 = 0.0;
  78. double gd_548 = 0.0;
  79. double gd_unused_556 = 0.0;
  80. double gd_564 = 0.0;
  81. double gd_572 = 0.0;
  82. double gd_unused_580 = 0.0;
  83. double gd_unused_588 = 0.0;
  84. double gd_unused_596 = 0.0;
  85. double g_price_604 = 0.0;
  86. double gd_612 = 0.0;
  87. double g_price_620;
  88. double g_price_628;
  89. double g_price_636;
  90. double g_price_644;
  91. double g_price_652;
  92. double g_price_660;
  93. double g_price_668;
  94. double g_price_676;
  95. double g_price_684;
  96. double g_price_692;
  97. double g_price_700;
  98. double g_price_708;
  99. double gd_716 = 0.0;
  100. double gd_724 = 0.0;
  101. double gd_732 = 0.0;
  102. double gda_740[2][6];
  103. double g_ibuf_744[];
  104. double gd_748 = 0.0;
  105. double gd_756 = 0.0;
  106. double gd_764 = 0.0;
  107. double gd_unused_772 = 0.0;
  108. double gd_780 = 0.0;
  109. double gd_788 = 0.0;
  110. double gd_unused_796 = 0.0;
  111. double gd_unused_804 = 0.0;
  112. double gd_unused_812 = 0.0;
  113. double g_price_820 = 0.0;
  114. double gd_828 = 0.0;
  115. double g_price_836;
  116. double g_price_844;
  117. double g_price_852;
  118. double g_price_860;
  119. double g_price_868;
  120. double g_price_876;
  121. double g_price_884;
  122. double g_price_892;
  123. double g_price_900;
  124. double g_price_908;
  125. double g_price_916;
  126. double g_price_924;
  127. double gd_932 = 0.0;
  128. double gd_940 = 0.0;
  129. double gd_948 = 0.0;
  130. double gda_956[2][6];
  131. double g_ibuf_960[];

  132. int init() {
  133.    IndicatorBuffers(4);
  134.    SetIndexStyle(0, DRAW_ARROW);
  135.    SetIndexArrow(0, 159);
  136.    SetIndexBuffer(0, g_ibuf_312);
  137.    SetIndexStyle(0, DRAW_ARROW);
  138.    SetIndexArrow(0, 159);
  139.    SetIndexBuffer(1, g_ibuf_528);
  140.    SetIndexStyle(0, DRAW_ARROW);
  141.    SetIndexArrow(0, 159);
  142.    SetIndexBuffer(2, g_ibuf_744);
  143.    SetIndexStyle(0, DRAW_ARROW);
  144.    SetIndexArrow(0, 159);
  145.    SetIndexBuffer(3, g_ibuf_960);
  146.    g_price_404 = 0;
  147.    g_price_412 = 0;
  148.    g_price_420 = 0;
  149.    g_price_428 = 0;
  150.    g_price_436 = 0;
  151.    g_price_444 = 0;
  152.    g_price_452 = 0;
  153.    g_price_460 = 0;
  154.    g_price_468 = 0;
  155.    g_price_476 = 0;
  156.    g_price_484 = 0;
  157.    g_price_492 = 0;
  158.    g_price_620 = 0;
  159.    g_price_628 = 0;
  160.    g_price_636 = 0;
  161.    g_price_644 = 0;
  162.    g_price_652 = 0;
  163.    g_price_660 = 0;
  164.    g_price_668 = 0;
  165.    g_price_676 = 0;
  166.    g_price_684 = 0;
  167.    g_price_692 = 0;
  168.    g_price_700 = 0;
  169.    g_price_708 = 0;
  170.    g_price_836 = 0;
  171.    g_price_844 = 0;
  172.    g_price_852 = 0;
  173.    g_price_860 = 0;
  174.    g_price_868 = 0;
  175.    g_price_876 = 0;
  176.    g_price_884 = 0;
  177.    g_price_892 = 0;
  178.    g_price_900 = 0;
  179.    g_price_908 = 0;
  180.    g_price_916 = 0;
  181.    g_price_924 = 0;
  182.    g_price_188 = 0;
  183.    g_price_196 = 0;
  184.    g_price_204 = 0;
  185.    g_price_212 = 0;
  186.    g_price_220 = 0;
  187.    g_price_228 = 0;
  188.    g_price_236 = 0;
  189.    g_price_244 = 0;
  190.    g_price_252 = 0;
  191.    g_price_260 = 0;
  192.    g_price_268 = 0;
  193.    g_price_276 = 0;
  194.    return (0);
  195. }

  196. int deinit() {
  197.    ObjectDelete("Fhr_R1 Label");
  198.    ObjectDelete("Fhr_R1 Line");
  199.    ObjectDelete("Fhr_R2 Label");
  200.    ObjectDelete("Fhr_R2 Line");
  201.    ObjectDelete("Fhr_R3 Label");
  202.    ObjectDelete("Fhr_R3 Line");
  203.    ObjectDelete("Fhr_S1 Label");
  204.    ObjectDelete("Fhr_S1 Line");
  205.    ObjectDelete("Fhr_S2 Label");
  206.    ObjectDelete("Fhr_S2 Line");
  207.    ObjectDelete("Fhr_S3 Label");
  208.    ObjectDelete("Fhr_S3 Line");
  209.    ObjectDelete("Fhr_P Label");
  210.    ObjectDelete("Fhr_P Line");
  211.    ObjectDelete("Fhr_M5 Label");
  212.    ObjectDelete("Fhr_M5 Line");
  213.    ObjectDelete("Fhr_M4 Label");
  214.    ObjectDelete("Fhr_M4 Line");
  215.    ObjectDelete("Fhr_M3 Label");
  216.    ObjectDelete("Fhr_M3 Line");
  217.    ObjectDelete("Fhr_M2 Label");
  218.    ObjectDelete("Fhr_M2 Line");
  219.    ObjectDelete("Fhr_M1 Label");
  220.    ObjectDelete("Fhr_M1 Line");
  221.    ObjectDelete("Fhr_M0 Label");
  222.    ObjectDelete("Fhr_M0 Line");
  223.    ObjectDelete("D_R1 Label");
  224.    ObjectDelete("D_R1 Line");
  225.    ObjectDelete("D_R2 Label");
  226.    ObjectDelete("D_R2 Line");
  227.    ObjectDelete("D_R3 Label");
  228.    ObjectDelete("D_R3 Line");
  229.    ObjectDelete("D_S1 Label");
  230.    ObjectDelete("D_S1 Line");
  231.    ObjectDelete("D_S2 Label");
  232.    ObjectDelete("D_S2 Line");
  233.    ObjectDelete("D_S3 Label");
  234.    ObjectDelete("D_S3 Line");
  235.    ObjectDelete("D_P Label");
  236.    ObjectDelete("D_P Line");
  237.    ObjectDelete("D_M5 Label");
  238.    ObjectDelete("D_M5 Line");
  239.    ObjectDelete("D_M4 Label");
  240.    ObjectDelete("D_M4 Line");
  241.    ObjectDelete("D_M3 Label");
  242.    ObjectDelete("D_M3 Line");
  243.    ObjectDelete("D_M2 Label");
  244.    ObjectDelete("D_M2 Line");
  245.    ObjectDelete("D_M1 Label");
  246.    ObjectDelete("D_M1 Line");
  247.    ObjectDelete("D_M0 Label");
  248.    ObjectDelete("D_M0 Line");
  249.    ObjectDelete("W_R1 Label");
  250.    ObjectDelete("W_R1 Line");
  251.    ObjectDelete("W_R2 Label");
  252.    ObjectDelete("W_R2 Line");
  253.    ObjectDelete("W_R3 Label");
  254.    ObjectDelete("W_R3 Line");
  255.    ObjectDelete("W_S1 Label");
  256.    ObjectDelete("W_S1 Line");
  257.    ObjectDelete("W_S2 Label");
  258.    ObjectDelete("W_S2 Line");
  259.    ObjectDelete("W_S3 Label");
  260.    ObjectDelete("W_S3 Line");
  261.    ObjectDelete("W_P Label");
  262.    ObjectDelete("W_P Line");
  263.    ObjectDelete("W_M5 Label");
  264.    ObjectDelete("W_M5 Line");
  265.    ObjectDelete("W_M4 Label");
  266.    ObjectDelete("W_M4 Line");
  267.    ObjectDelete("W_M3 Label");
  268.    ObjectDelete("W_M3 Line");
  269.    ObjectDelete("W_M2 Label");
  270.    ObjectDelete("W_M2 Line");
  271.    ObjectDelete("W_M1 Label");
  272.    ObjectDelete("W_M1 Line");
  273.    ObjectDelete("W_M0 Label");
  274.    ObjectDelete("W_M0 Line");
  275.    ObjectDelete("M_R1 Label");
  276.    ObjectDelete("M_R1 Line");
  277.    ObjectDelete("M_R2 Label");
  278.    ObjectDelete("M_R2 Line");
  279.    ObjectDelete("M_R3 Label");
  280.    ObjectDelete("M_R3 Line");
  281.    ObjectDelete("M_S1 Label");
  282.    ObjectDelete("M_S1 Line");
  283.    ObjectDelete("M_S2 Label");
  284.    ObjectDelete("M_S2 Line");
  285.    ObjectDelete("M_S3 Label");
  286.    ObjectDelete("M_S3 Line");
  287.    ObjectDelete("M_P Label");
  288.    ObjectDelete("M_P Line");
  289.    ObjectDelete("M_M5 Label");
  290.    ObjectDelete("M_M5 Line");
  291.    ObjectDelete("M_M4 Label");
  292.    ObjectDelete("M_M4 Line");
  293.    ObjectDelete("M_M3 Label");
  294.    ObjectDelete("M_M3 Line");
  295.    ObjectDelete("M_M2 Label");
  296.    ObjectDelete("M_M2 Line");
  297.    ObjectDelete("M_M1 Label");
  298.    ObjectDelete("M_M1 Line");
  299.    ObjectDelete("M_M0 Label");
  300.    ObjectDelete("M_M0 Line");
  301.    return (0);
  302. }

  303. int start() {
  304.    ArrayCopyRates(gda_308, Symbol(), PERIOD_H4);
  305.    gd_140 = gda_308[1][4];
  306.    gd_unused_124 = gda_308[1][1];
  307.    gd_unused_148 = gda_308[0][1];
  308.    gd_116 = gda_308[1][3];
  309.    gd_132 = gda_308[1][2];
  310.    gd_100 = gda_308[0][3];
  311.    gd_108 = gda_308[0][2];
  312.    gd_300 = gd_100 - gd_108;
  313.    gd_180 = gd_116 - gd_132;
  314.    g_price_172 = (gd_116 + gd_132 + gd_140) / 3.0;
  315.    g_price_188 = 2.0 * g_price_172 - gd_132;
  316.    g_price_260 = 2.0 * g_price_172 - gd_116;
  317.    g_price_196 = g_price_172 + (gd_116 - gd_132);
  318.    g_price_268 = g_price_172 - (gd_116 - gd_132);
  319.    g_price_204 = 2.0 * g_price_172 + (gd_116 - 2.0 * gd_132);
  320.    g_price_252 = (g_price_196 + g_price_204) / 2.0;
  321.    g_price_244 = (g_price_188 + g_price_196) / 2.0;
  322.    g_price_236 = (g_price_172 + g_price_188) / 2.0;
  323.    g_price_228 = (g_price_172 + g_price_260) / 2.0;
  324.    g_price_220 = (g_price_260 + g_price_268) / 2.0;
  325.    g_price_276 = 2.0 * g_price_172 - (2.0 * gd_116 - gd_132);
  326.    g_price_212 = (g_price_268 + g_price_276) / 2.0;
  327.    if (gd_180 > 5.0) gd_284 = gd_180;
  328.    else gd_284 = 10000.0 * gd_180;
  329.    if (gd_300 > 5.0) gd_292 = gd_300;
  330.    else gd_292 = 10000.0 * gd_300;
  331.    ArrayCopyRates(gda_524, Symbol(), PERIOD_D1);
  332.    gd_356 = gda_524[1][4];
  333.    gd_unused_340 = gda_524[1][1];
  334.    gd_unused_364 = gda_524[0][1];
  335.    gd_332 = gda_524[1][3];
  336.    gd_348 = gda_524[1][2];
  337.    gd_316 = gda_524[0][3];
  338.    gd_324 = gda_524[0][2];
  339.    gd_516 = gd_316 - gd_324;
  340.    gd_396 = gd_332 - gd_348;
  341.    g_price_388 = (gd_332 + gd_348 + gd_356) / 3.0;
  342.    g_price_404 = 2.0 * g_price_388 - gd_348;
  343.    g_price_476 = 2.0 * g_price_388 - gd_332;
  344.    g_price_412 = g_price_388 + (gd_332 - gd_348);
  345.    g_price_484 = g_price_388 - (gd_332 - gd_348);
  346.    g_price_420 = 2.0 * g_price_388 + (gd_332 - 2.0 * gd_348);
  347.    g_price_468 = (g_price_412 + g_price_420) / 2.0;
  348.    g_price_460 = (g_price_404 + g_price_412) / 2.0;
  349.    g_price_452 = (g_price_388 + g_price_404) / 2.0;
  350.    g_price_444 = (g_price_388 + g_price_476) / 2.0;
  351.    g_price_436 = (g_price_476 + g_price_484) / 2.0;
  352.    g_price_492 = 2.0 * g_price_388 - (2.0 * gd_332 - gd_348);
  353.    g_price_428 = (g_price_484 + g_price_492) / 2.0;
  354.    if (gd_396 > 5.0) gd_500 = gd_396;
  355.    else gd_500 = 10000.0 * gd_396;
  356.    if (gd_516 > 5.0) gd_508 = gd_516;
  357.    else gd_508 = 10000.0 * gd_516;
  358.    ArrayCopyRates(gda_740, Symbol(), PERIOD_W1);
  359.    gd_572 = gda_740[1][4];
  360.    gd_unused_556 = gda_740[1][1];
  361.    gd_unused_580 = gda_740[0][1];
  362.    gd_548 = gda_740[1][3];
  363.    gd_564 = gda_740[1][2];
  364.    gd_532 = gda_740[0][3];
  365.    gd_540 = gda_740[0][2];
  366.    gd_732 = gd_532 - gd_540;
  367.    gd_612 = gd_548 - gd_564;
  368.    g_price_604 = (gd_548 + gd_564 + gd_572) / 3.0;
  369.    g_price_620 = 2.0 * g_price_604 - gd_564;
  370.    g_price_692 = 2.0 * g_price_604 - gd_548;
  371.    g_price_628 = g_price_604 + (gd_548 - gd_564);
  372.    g_price_700 = g_price_604 - (gd_548 - gd_564);
  373.    g_price_636 = 2.0 * g_price_604 + (gd_548 - 2.0 * gd_564);
  374.    g_price_684 = (g_price_628 + g_price_636) / 2.0;
  375.    g_price_676 = (g_price_620 + g_price_628) / 2.0;
  376.    g_price_668 = (g_price_604 + g_price_620) / 2.0;
  377.    g_price_660 = (g_price_604 + g_price_692) / 2.0;
  378.    g_price_652 = (g_price_692 + g_price_700) / 2.0;
  379.    g_price_708 = 2.0 * g_price_604 - (2.0 * gd_548 - gd_564);
  380.    g_price_644 = (g_price_700 + g_price_708) / 2.0;
  381.    if (gd_612 > 5.0) gd_716 = gd_612;
  382.    else gd_716 = 10000.0 * gd_612;
  383.    if (gd_732 > 5.0) gd_724 = gd_732;
  384.    else gd_724 = 10000.0 * gd_732;
  385.    ArrayCopyRates(gda_956, Symbol(), PERIOD_MN1);
  386.    gd_788 = gda_956[1][4];
  387.    gd_unused_772 = gda_956[1][1];
  388.    gd_unused_796 = gda_956[0][1];
  389.    gd_764 = gda_956[1][3];
  390.    gd_780 = gda_956[1][2];
  391.    gd_748 = gda_956[0][3];
  392.    gd_756 = gda_956[0][2];
  393.    gd_948 = gd_748 - gd_756;
  394.    gd_828 = gd_764 - gd_780;
  395.    g_price_820 = (gd_764 + gd_780 + gd_788) / 3.0;
  396.    g_price_836 = 2.0 * g_price_820 - gd_780;
  397.    g_price_908 = 2.0 * g_price_820 - gd_764;
  398.    g_price_844 = g_price_820 + (gd_764 - gd_780);
  399.    g_price_916 = g_price_820 - (gd_764 - gd_780);
  400.    g_price_852 = 2.0 * g_price_820 + (gd_764 - 2.0 * gd_780);
  401.    g_price_900 = (g_price_844 + g_price_852) / 2.0;
  402.    g_price_892 = (g_price_836 + g_price_844) / 2.0;
  403.    g_price_884 = (g_price_820 + g_price_836) / 2.0;
  404.    g_price_876 = (g_price_820 + g_price_908) / 2.0;
  405.    g_price_868 = (g_price_908 + g_price_916) / 2.0;
  406.    g_price_924 = 2.0 * g_price_820 - (2.0 * gd_764 - gd_780);
  407.    g_price_860 = (g_price_916 + g_price_924) / 2.0;
  408.    if (gd_828 > 5.0) gd_932 = gd_828;
  409.    else gd_932 = 10000.0 * gd_828;
  410.    if (gd_948 > 5.0) gd_940 = gd_948;
  411.    else gd_940 = 10000.0 * gd_948;
  412.    if (Fhr == TRUE) {
  413.       if (ObjectFind("Fhr_R1 label") != 0) {
  414.          ObjectCreate("Fhr_R1 label", OBJ_TEXT, 0, Time[0], g_price_188);
  415.          ObjectSetText("Fhr_R1 label", "Fhr_R1 " + DoubleToStr(g_price_188, 4), 8, "Arial", CLR_NONE);
  416.       } else ObjectMove("Fhr_R1 label", 0, Time[0], g_price_188);
  417.       if (ObjectFind("Fhr_R2 label") != 0) {
  418.          ObjectCreate("Fhr_R2 label", OBJ_TEXT, 0, Time[20], g_price_196);
  419.          ObjectSetText("Fhr_R2 label", "Fhr_R2 " + DoubleToStr(g_price_196, 4), 8, "Arial", CLR_NONE);
  420.       } else ObjectMove("Fhr_R2 label", 0, Time[0], g_price_196);
  421.       if (ObjectFind("Fhr_R3 label") != 0) {
  422.          ObjectCreate("Fhr_R3 label", OBJ_TEXT, 0, Time[20], g_price_204);
  423.          ObjectSetText("Fhr_R3 label", "Fhr_R3 " + DoubleToStr(g_price_204, 4), 8, "Arial", CLR_NONE);
  424.       } else ObjectMove("Fhr_R3 label", 0, Time[0], g_price_204);
  425.       if (ObjectFind("Fhr_P label") != 0) {
  426.          ObjectCreate("Fhr_P label", OBJ_TEXT, 0, Time[0], g_price_172);
  427.          ObjectSetText("Fhr_P label", "Fhr_Pivot " + DoubleToStr(g_price_172, 4), 8, "Arial", CLR_NONE);
  428.       } else ObjectMove("Fhr_P label", 0, Time[0], g_price_172);
  429.       if (ObjectFind("Fhr_S1 label") != 0) {
  430.          ObjectCreate("Fhr_S1 label", OBJ_TEXT, 0, Time[0], g_price_260);
  431.          ObjectSetText("Fhr_S1 label", "Fhr_S1 " + DoubleToStr(g_price_260, 4), 8, "Arial", CLR_NONE);
  432.       } else ObjectMove("Fhr_S1 label", 0, Time[0], g_price_260);
  433.       if (ObjectFind("Fhr_S2 label") != 0) {
  434.          ObjectCreate("Fhr_S2 label", OBJ_TEXT, 0, Time[20], g_price_268);
  435.          ObjectSetText("Fhr_S2 label", "Fhr_S2 " + DoubleToStr(g_price_268, 4), 8, "Arial", CLR_NONE);
  436.       } else ObjectMove("Fhr_S2 label", 0, Time[0], g_price_268);
  437.       if (ObjectFind("Fhr_S3 label") != 0) {
  438.          ObjectCreate("Fhr_S3 label", OBJ_TEXT, 0, Time[20], g_price_276);
  439.          ObjectSetText("Fhr_S3 label", "Fhr_S3 " + DoubleToStr(g_price_276, 4), 8, "Arial", CLR_NONE);
  440.       } else ObjectMove("Fhr_S3 label", 0, Time[0], g_price_276);
  441.       if (ObjectFind("Fhr_S1 line") != 0) {
  442.          ObjectCreate("Fhr_S1 line", OBJ_HLINE, 0, Time[0], g_price_260);
  443.          ObjectSet("Fhr_S1 line", OBJPROP_STYLE, STYLE_SOLID);
  444.          ObjectSet("Fhr_S1 line", OBJPROP_WIDTH, 1);
  445.          ObjectSet("Fhr_S1 line", OBJPROP_COLOR, Blue);
  446.       } else ObjectMove("Fhr_S1 line", 0, Time[40], g_price_260);
  447.       if (ObjectFind("Fhr_S2 line") != 0) {
  448.          ObjectCreate("Fhr_S2 line", OBJ_HLINE, 0, Time[40], g_price_268, Time[0], g_price_268);
  449.          ObjectSet("Fhr_S2 line", OBJPROP_STYLE, STYLE_SOLID);
  450.          ObjectSet("Fhr_S2 line", OBJPROP_WIDTH, 1);
  451.          ObjectSet("Fhr_S2 line", OBJPROP_COLOR, Blue);
  452.       } else ObjectMove("Fhr_S2 line", 0, Time[40], g_price_268);
  453.       if (ObjectFind("Fhr_S3 line") != 0) {
  454.          ObjectCreate("Fhr_S3 line", OBJ_HLINE, 0, Time[40], g_price_276, Time[0], g_price_276);
  455.          ObjectSet("Fhr_S3 line", OBJPROP_STYLE, STYLE_SOLID);
  456.          ObjectSet("Fhr_S3 line", OBJPROP_WIDTH, 1);
  457.          ObjectSet("Fhr_S3 line", OBJPROP_COLOR, Blue);
  458.       } else ObjectMove("Fhr_S3 line", 0, Time[40], g_price_276);
  459.       if (ObjectFind("Fhr_P line") != 0) {
  460.          ObjectCreate("Fhr_P line", OBJ_HLINE, 0, Time[40], g_price_172, Time[0], g_price_172);
  461.          ObjectSet("Fhr_P line", OBJPROP_STYLE, STYLE_SOLID);
  462.          ObjectSet("Fhr_P line", OBJPROP_WIDTH, 1);
  463.          ObjectSet("Fhr_P line", OBJPROP_COLOR, LightBlue);
  464.       } else ObjectMove("Fhr_P line", 0, Time[40], g_price_172);
  465.       if (ObjectFind("Fhr_R1 line") != 0) {
  466.          ObjectCreate("Fhr_R1 line", OBJ_HLINE, 0, Time[40], g_price_188, Time[0], g_price_188);
  467.          ObjectSet("Fhr_R1 line", OBJPROP_STYLE, STYLE_SOLID);
  468.          ObjectSet("Fhr_R1 line", OBJPROP_WIDTH, 1);
  469.          ObjectSet("Fhr_R1 line", OBJPROP_COLOR, Red);
  470.       } else ObjectMove("Fhr_R1 line", 0, Time[40], g_price_188);
  471.       if (ObjectFind("Fhr_R2 line") != 0) {
  472.          ObjectCreate("Fhr_R2 line", OBJ_HLINE, 0, Time[0], g_price_196);
  473.          ObjectSet("Fhr_R2 line", OBJPROP_STYLE, STYLE_SOLID);
  474.          ObjectSet("Fhr_R2 line", OBJPROP_WIDTH, 1);
  475.          ObjectSet("Fhr_R2 line", OBJPROP_COLOR, Red);
  476.       } else ObjectMove("Fhr_R2 line", 0, Time[40], g_price_196);
  477.       if (ObjectFind("Fhr_R3 line") != 0) {
  478.          ObjectCreate("Fhr_R3 line", OBJ_HLINE, 0, Time[40], g_price_204, Time[0], g_price_204);
  479.          ObjectSet("Fhr_R3 line", OBJPROP_STYLE, STYLE_SOLID);
  480.          ObjectSet("Fhr_R3 line", OBJPROP_WIDTH, 1);
  481.          ObjectSet("Fhr_R3 line", OBJPROP_COLOR, Red);
  482.       } else ObjectMove("Fhr_R3 line", 0, Time[40], g_price_204);
  483.    }
  484.    if (Fhr == TRUE && midpivots == TRUE) {
  485.       if (ObjectFind("Fhr_M5 label") != 0) {
  486.          ObjectCreate("Fhr_M5 label", OBJ_TEXT, 0, Time[20], g_price_252);
  487.          ObjectSetText("Fhr_M5 label", " Fhr_M5 " + DoubleToStr(g_price_252, 4), 8, "Arial", CLR_NONE);
  488.       } else ObjectMove("Fhr_M5 label", 0, Time[0], g_price_252);
  489.       if (ObjectFind("Fhr_M4 label") != 0) {
  490.          ObjectCreate("Fhr_M4 label", OBJ_TEXT, 0, Time[20], g_price_244);
  491.          ObjectSetText("Fhr_M4 label", "Fhr_M4 " + DoubleToStr(g_price_244, 4), 8, "Arial", CLR_NONE);
  492.       } else ObjectMove("Fhr_M4 label", 0, Time[0], g_price_244);
  493.       if (ObjectFind("Fhr_M3 label") != 0) {
  494.          ObjectCreate("Fhr_M3 label", OBJ_TEXT, 0, Time[20], g_price_236);
  495.          ObjectSetText("Fhr_M3 label", "Fhr_M3 " + DoubleToStr(g_price_236, 4), 8, "Arial", CLR_NONE);
  496.       } else ObjectMove("Fhr_M3 label", 0, Time[0], g_price_236);
  497.       if (ObjectFind("Fhr_M2 label") != 0) {
  498.          ObjectCreate("Fhr_M2 label", OBJ_TEXT, 0, Time[20], g_price_228);
  499.          ObjectSetText("Fhr_M2 label", "Fhr_M2 " + DoubleToStr(g_price_228, 4), 8, "Arial", CLR_NONE);
  500.       } else ObjectMove("Fhr_M2 label", 0, Time[0], g_price_228);
  501.       if (ObjectFind("Fhr_M1 label") != 0) {
  502.          ObjectCreate("Fhr_M1 label", OBJ_TEXT, 0, Time[20], g_price_220);
  503.          ObjectSetText("Fhr_M1 label", "Fhr_M1 " + DoubleToStr(g_price_220, 4), 8, "Arial", CLR_NONE);
  504.       } else ObjectMove("Fhr_M1 label", 0, Time[0], g_price_220);
  505.       if (ObjectFind("Fhr_M0 label") != 0) {
  506.          ObjectCreate("Fhr_M0 label", OBJ_TEXT, 0, Time[20], g_price_212);
  507.          ObjectSetText("Fhr_M0 label", "Fhr_M0 " + DoubleToStr(g_price_212, 4), 8, "Arial", CLR_NONE);
  508.       } else ObjectMove("Fhr_M0 label", 0, Time[0], g_price_212);
  509.       if (ObjectFind("Fhr_M5 line") != 0) {
  510.          ObjectCreate("Fhr_M5 line", OBJ_HLINE, 0, Time[0], g_price_252, Time[0], g_price_252);
  511.          ObjectSet("Fhr_M5 line", OBJPROP_STYLE, STYLE_SOLID);
  512.          ObjectSet("Fhr_M5 line", OBJPROP_WIDTH, 1);
  513.          ObjectSet("Fhr_M5 line", OBJPROP_COLOR, Red);
  514.       } else ObjectMove("Fhr_M5 line", 0, Time[40], g_price_252);
  515.       if (ObjectFind("Fhr_M4 line") != 0) {
  516.          ObjectCreate("Fhr_M4 line", OBJ_HLINE, 0, Time[40], g_price_244, Time[0], g_price_244);
  517.          ObjectSet("Fhr_M4 line", OBJPROP_STYLE, STYLE_SOLID);
  518.          ObjectSet("Fhr_M4 line", OBJPROP_WIDTH, 1);
  519.          ObjectSet("Fhr_M4 line", OBJPROP_COLOR, Red);
  520.       } else ObjectMove("Fhr_M4 line", 0, Time[40], g_price_244);
  521.       if (ObjectFind("Fhr_M3 line") != 0) {
  522.          ObjectCreate("Fhr_M3 line", OBJ_HLINE, 0, Time[0], g_price_236, Time[0], g_price_236);
  523.          ObjectSet("Fhr_M3 line", OBJPROP_STYLE, STYLE_SOLID);
  524.          ObjectSet("Fhr_M3 line", OBJPROP_WIDTH, 1);
  525.          ObjectSet("Fhr_M3 line", OBJPROP_COLOR, Red);
  526.       } else ObjectMove("Fhr_M3 line", 0, Time[40], g_price_236);
  527.       if (ObjectFind("Fhr_M2 line") != 0) {
  528.          ObjectCreate("Fhr_M2 line", OBJ_HLINE, 0, Time[40], g_price_228);
  529.          ObjectSet("Fhr_M2 line", OBJPROP_STYLE, STYLE_SOLID);
  530.          ObjectSet("Fhr_M2 line", OBJPROP_WIDTH, 1);
  531.          ObjectSet("Fhr_M2 line", OBJPROP_COLOR, Blue);
  532.       } else ObjectMove("Fhr_M2 line", 0, Time[40], g_price_228);
  533.       if (ObjectFind("Fhr_M1 line") != 0) {
  534.          ObjectCreate("Fhr_M1 line", OBJ_HLINE, 0, Time[40], g_price_220);
  535.          ObjectSet("Fhr_M1 line", OBJPROP_STYLE, STYLE_SOLID);
  536.          ObjectSet("Fhr_M1 line", OBJPROP_WIDTH, 1);
  537.          ObjectSet("Fhr_M1 line", OBJPROP_COLOR, Blue);
  538.       } else ObjectMove("Fhr_M1 line", 0, Time[40], g_price_220);
  539.       if (ObjectFind("Fhr_M0 line") != 0) {
  540.          ObjectCreate("Fhr_M0 line", OBJ_HLINE, 0, Time[40], g_price_212);
  541.          ObjectSet("Fhr_M0 line", OBJPROP_STYLE, STYLE_SOLID);
  542.          ObjectSet("Fhr_M0 line", OBJPROP_WIDTH, 1);
  543.          ObjectSet("Fhr_M0 line", OBJPROP_COLOR, Blue);
  544.       } else ObjectMove("Fhr_M0 line", 0, Time[40], g_price_212);
  545.    }
  546.    if (daily == TRUE) {
  547.       if (ObjectFind("D_R1 label") != 0) {
  548.          ObjectCreate("D_R1 label", OBJ_TEXT, 0, Time[20], g_price_404);
  549.          ObjectSetText("D_R1 label", "                              D_R1 " + DoubleToStr(g_price_404, 4), 8, "Arial", CLR_NONE);
  550.       } else ObjectMove("     D_R1 label", 0, Time[0], g_price_404);
  551.       if (ObjectFind("D_R2 label") != 0) {
  552.          ObjectCreate("D_R2 label", OBJ_TEXT, 0, Time[20], g_price_412);
  553.          ObjectSetText("D_R2 label", "                              D_R2 " + DoubleToStr(g_price_412, 4), 8, "Arial", CLR_NONE);
  554.       } else ObjectMove("D_R2 label", 0, Time[0], g_price_412);
  555.       if (ObjectFind("D_R3 label") != 0) {
  556.          ObjectCreate("D_R3 label", OBJ_TEXT, 0, Time[20], g_price_420);
  557.          ObjectSetText("D_R3 label", "                              D_R3 " + DoubleToStr(g_price_420, 4), 8, "Arial", CLR_NONE);
  558.       } else ObjectMove("D_R3 label", 0, Time[0], g_price_420);
  559.       if (ObjectFind("D_P label") != 0) {
  560.          ObjectCreate("D_P label", OBJ_TEXT, 0, Time[0], g_price_388);
  561.          ObjectSetText("D_P label", "                               D_Pivot " + DoubleToStr(g_price_388, 4), 8, "Arial", CLR_NONE);
  562.       } else ObjectMove("D_P label", 0, Time[0], g_price_388);
  563.       if (ObjectFind("D_S1 label") != 0) {
  564.          ObjectCreate("D_S1 label", OBJ_TEXT, 0, Time[0], g_price_476);
  565.          ObjectSetText("D_S1 label", "                              D_S1 " + DoubleToStr(g_price_476, 4), 8, "Arial", CLR_NONE);
  566.       } else ObjectMove("D_S1 label", 0, Time[0], g_price_476);
  567.       if (ObjectFind("D_S2 label") != 0) {
  568.          ObjectCreate("D_S2 label", OBJ_TEXT, 0, Time[20], g_price_484);
  569.          ObjectSetText("D_S2 label", "                              D_S2 " + DoubleToStr(g_price_484, 4), 8, "Arial", CLR_NONE);
  570.       } else ObjectMove("D_S2 label", 0, Time[0], g_price_484);
  571.       if (ObjectFind("D_S3 label") != 0) {
  572.          ObjectCreate("D_S3 label", OBJ_TEXT, 0, Time[20], g_price_492);
  573.          ObjectSetText("D_S3 label", "                              D_S3 " + DoubleToStr(g_price_492, 4), 8, "Arial", CLR_NONE);
  574.       } else ObjectMove("D_S3 label", 0, Time[0], g_price_492);
  575.       if (ObjectFind("D_S1 line") != 0) {
  576.          ObjectCreate("D_S1 line", OBJ_HLINE, 0, Time[0], g_price_476, Time[0], g_price_476);
  577.          ObjectSet("D_S1 line", OBJPROP_STYLE, STYLE_SOLID);
  578.          ObjectSet("D_S1 line", OBJPROP_WIDTH, 1);
  579.          ObjectSet("D_S1 line", OBJPROP_COLOR, Blue);
  580.       } else ObjectMove("D_S1 line", 0, Time[40], g_price_476);
  581.       if (ObjectFind("D_S2 line") != 0) {
  582.          ObjectCreate("D_S2 line", OBJ_HLINE, 0, Time[40], g_price_484);
  583.          ObjectSet("D_S2 line", OBJPROP_STYLE, STYLE_SOLID);
  584.          ObjectSet("D_S2 line", OBJPROP_WIDTH, 1);
  585.          ObjectSet("D_S2 line", OBJPROP_COLOR, Blue);
  586.       } else ObjectMove("D_S2 line", 0, Time[40], g_price_484);
  587.       if (ObjectFind("D_S3 line") != 0) {
  588.          ObjectCreate("D_S3 line", OBJ_HLINE, 0, Time[40], g_price_492);
  589.          ObjectSet("D_S3 line", OBJPROP_STYLE, STYLE_SOLID);
  590.          ObjectSet("D_S3 line", OBJPROP_WIDTH, 1);
  591.          ObjectSet("D_S3 line", OBJPROP_COLOR, Blue);
  592.       } else ObjectMove("D_S3 line", 0, Time[40], g_price_492);
  593.       if (ObjectFind("D_P line") != 0) {
  594.          ObjectCreate("D_P line", OBJ_HLINE, 0, Time[40], g_price_388);
  595.          ObjectSet("D_P line", OBJPROP_STYLE, STYLE_SOLID);
  596.          ObjectSet("D_P line", OBJPROP_WIDTH, 1);
  597.          ObjectSet("D_P line", OBJPROP_COLOR, LightBlue);
  598.       } else ObjectMove("D_P line", 0, Time[40], g_price_388);
  599.       if (ObjectFind("D_R1 line") != 0) {
  600.          ObjectCreate("D_R1 line", OBJ_HLINE, 0, Time[40], g_price_404);
  601.          ObjectSet("D_R1 line", OBJPROP_STYLE, STYLE_SOLID);
  602.          ObjectSet("D_R1 line", OBJPROP_WIDTH, 1);
  603.          ObjectSet("D_R1 line", OBJPROP_COLOR, Red);
  604.       } else ObjectMove("D_R1 line", 0, Time[40], g_price_404);
  605.       if (ObjectFind("D_R2 line") != 0) {
  606.          ObjectCreate("D_R2 line", OBJ_HLINE, 0, Time[40], g_price_412);
  607.          ObjectSet("D_R2 line", OBJPROP_STYLE, STYLE_SOLID);
  608.          ObjectSet("D_R2 line", OBJPROP_WIDTH, 1);
  609.          ObjectSet("D_R2 line", OBJPROP_COLOR, Red);
  610.       } else ObjectMove("D_R2 line", 0, Time[40], g_price_412);
  611.       if (ObjectFind("D_R3 line") != 0) {
  612.          ObjectCreate("D_R3 line", OBJ_HLINE, 0, Time[40], g_price_420);
  613.          ObjectSet("D_R3 line", OBJPROP_STYLE, STYLE_SOLID);
  614.          ObjectSet("D_R3 line", OBJPROP_WIDTH, 1);
  615.          ObjectSet("D_R3 line", OBJPROP_COLOR, Red);
  616.       } else ObjectMove("D_R3 line", 0, Time[40], g_price_420);
  617.    }
  618.    if (daily == TRUE && midpivots == TRUE) {
  619.       if (ObjectFind("D_M5 label") != 0) {
  620.          ObjectCreate("D_M5 label", OBJ_TEXT, 0, Time[20], g_price_468);
  621.          ObjectSetText("D_M5 label", "                              D_M5 " + DoubleToStr(g_price_468, 4), 8, "Arial", CLR_NONE);
  622.       } else ObjectMove("D_M5 label", 0, Time[0], g_price_468);
  623.       if (ObjectFind("D_M4 label") != 0) {
  624.          ObjectCreate("D_M4 label", OBJ_TEXT, 0, Time[20], g_price_460);
  625.          ObjectSetText("D_M4 label", "                              D_M4 " + DoubleToStr(g_price_460, 4), 8, "Arial", CLR_NONE);
  626.       } else ObjectMove("D_M4 label", 0, Time[0], g_price_460);
  627.       if (ObjectFind("D_M3 label") != 0) {
  628.          ObjectCreate("D_M3 label", OBJ_TEXT, 0, Time[20], g_price_452);
  629.          ObjectSetText("D_M3 label", "                              D_M3 " + DoubleToStr(g_price_452, 4), 8, "Arial", CLR_NONE);
  630.       } else ObjectMove("D_M3 label", 0, Time[0], g_price_452);
  631.       if (ObjectFind("D_M2 label") != 0) {
  632.          ObjectCreate("D_M2 label", OBJ_TEXT, 0, Time[20], g_price_444);
  633.          ObjectSetText("D_M2 label", "                              D_M2 " + DoubleToStr(g_price_444, 4), 8, "Arial", CLR_NONE);
  634.       } else ObjectMove("D_M2 label", 0, Time[0], g_price_444);
  635.       if (ObjectFind("D_M1 label") != 0) {
  636.          ObjectCreate("D_M1 label", OBJ_TEXT, 0, Time[20], g_price_436);
  637.          ObjectSetText("D_M1 label", "                              D_M1 " + DoubleToStr(g_price_436, 4), 8, "Arial", CLR_NONE);
  638.       } else ObjectMove("D_M1 label", 0, Time[0], g_price_436);
  639.       if (ObjectFind("D_M0 label") != 0) {
  640.          ObjectCreate("D_M0 label", OBJ_TEXT, 0, Time[20], g_price_428);
  641.          ObjectSetText("D_M0 label", "                              D_M0 " + DoubleToStr(g_price_428, 4), 8, "Arial", CLR_NONE);
  642.       } else ObjectMove("D_M0 label", 0, Time[0], g_price_428);
  643.       if (ObjectFind("D_M5 line") != 0) {
  644.          ObjectCreate("D_M5 line", OBJ_HLINE, 0, Time[40], g_price_468);
  645.          ObjectSet("D_M5 line", OBJPROP_STYLE, STYLE_SOLID);
  646.          ObjectSet("D_M5 line", OBJPROP_WIDTH, 1);
  647.          ObjectSet("D_M5 line", OBJPROP_COLOR, Red);
  648.       } else ObjectMove("D_M5 line", 0, Time[40], g_price_468);
  649.       if (ObjectFind("D_M4 line") != 0) {
  650.          ObjectCreate("D_M4 line", OBJ_HLINE, 0, Time[40], g_price_460);
  651.          ObjectSet("D_M4 line", OBJPROP_STYLE, STYLE_SOLID);
  652.          ObjectSet("D_M4 line", OBJPROP_WIDTH, 1);
  653.          ObjectSet("D_M4 line", OBJPROP_COLOR, Red);
  654.       } else ObjectMove("D_M4 line", 0, Time[40], g_price_460);
  655.       if (ObjectFind("D_M3 line") != 0) {
  656.          ObjectCreate("D_M3 line", OBJ_HLINE, 0, Time[40], g_price_452);
  657.          ObjectSet("D_M3 line", OBJPROP_STYLE, STYLE_SOLID);
  658.          ObjectSet("D_M3 line", OBJPROP_WIDTH, 1);
  659.          ObjectSet("D_M3 line", OBJPROP_COLOR, Red);
  660.       } else ObjectMove("D_M3 line", 0, Time[40], g_price_452);
  661.       if (ObjectFind("D_M2 line") != 0) {
  662.          ObjectCreate("D_M2 line", OBJ_HLINE, 0, Time[40], g_price_444);
  663.          ObjectSet("D_M2 line", OBJPROP_STYLE, STYLE_SOLID);
  664.          ObjectSet("D_M2 line", OBJPROP_WIDTH, 1);
  665.          ObjectSet("D_M2 line", OBJPROP_COLOR, Blue);
  666.       } else ObjectMove("D_M2 line", 0, Time[40], g_price_444);
  667.       if (ObjectFind("D_M1 line") != 0) {
  668.          ObjectCreate("D_M1 line", OBJ_HLINE, 0, Time[40], g_price_436);
  669.          ObjectSet("D_M1 line", OBJPROP_STYLE, STYLE_SOLID);
  670.          ObjectSet("D_M1 line", OBJPROP_WIDTH, 1);
  671.          ObjectSet("D_M1 line", OBJPROP_COLOR, Blue);
  672.       } else ObjectMove("D_M1 line", 0, Time[40], g_price_436);
  673.       if (ObjectFind("D_M0 line") != 0) {
  674.          ObjectCreate("D_M0 line", OBJ_HLINE, 0, Time[40], g_price_428);
  675.          ObjectSet("D_M0 line", OBJPROP_STYLE, STYLE_SOLID);
  676.          ObjectSet("D_M0 line", OBJPROP_WIDTH, 1);
  677.          ObjectSet("D_M0 line", OBJPROP_COLOR, Blue);
  678.       } else ObjectMove("D_M0 line", 0, Time[40], g_price_428);
  679.    }
  680.    if (weekly == TRUE) {
  681.       if (ObjectFind("W_R1 label") != 0) {
  682.          ObjectCreate("W_R1 label", OBJ_TEXT, 0, Time[0], g_price_620);
  683.          ObjectSetText("W_R1 label", "W_R1 " + DoubleToStr(g_price_620, 4), 8, "Arial", CLR_NONE);
  684.       } else ObjectMove("W_R1 label", 0, Time[0], g_price_620);
  685.       if (ObjectFind("W_R2 label") != 0) {
  686.          ObjectCreate("W_R2 label", OBJ_TEXT, 0, Time[20], g_price_628);
  687.          ObjectSetText("W_R2 label", "W_R2 " + DoubleToStr(g_price_628, 4), 8, "Arial", CLR_NONE);
  688.       } else ObjectMove("W_R2 label", 0, Time[0], g_price_628);
  689.       if (ObjectFind("W_R3 label") != 0) {
  690.          ObjectCreate("W_R3 label", OBJ_TEXT, 0, Time[20], g_price_636);
  691.          ObjectSetText("W_R3 label", "W_R3 " + DoubleToStr(g_price_636, 4), 8, "Arial", CLR_NONE);
  692.       } else ObjectMove("W_R3 label", 0, Time[0], g_price_636);
  693.       if (ObjectFind("W_P label") != 0) {
  694.          ObjectCreate("W_P label", OBJ_TEXT, 0, Time[0], g_price_604);
  695.          ObjectSetText("W_P label", "W_Pivot " + DoubleToStr(g_price_604, 4), 8, "Arial", CLR_NONE);
  696.       } else ObjectMove("W_P label", 0, Time[0], g_price_604);
  697.       if (ObjectFind("W_S1 label") != 0) {
  698.          ObjectCreate("W_S1 label", OBJ_TEXT, 0, Time[0], g_price_692);
  699.          ObjectSetText("W_S1 label", "W_S1 " + DoubleToStr(g_price_692, 4), 8, "Arial", CLR_NONE);
  700.       } else ObjectMove("W_S1 label", 0, Time[0], g_price_692);
  701.       if (ObjectFind("W_S2 label") != 0) {
  702.          ObjectCreate("W_S2 label", OBJ_TEXT, 0, Time[20], g_price_700);
  703.          ObjectSetText("W_S2 label", "W_S2 " + DoubleToStr(g_price_700, 4), 8, "Arial", CLR_NONE);
  704.       } else ObjectMove("W_S2 label", 0, Time[0], g_price_700);
  705.       if (ObjectFind("W_S3 label") != 0) {
  706.          ObjectCreate("W_S3 label", OBJ_TEXT, 0, Time[20], g_price_708);
  707.          ObjectSetText("W_S3 label", "W_S3 " + DoubleToStr(g_price_708, 4), 8, "Arial", CLR_NONE);
  708.       } else ObjectMove("W_S3 label", 0, Time[0], g_price_708);
  709.       if (ObjectFind("W_S1 line") != 0) {
  710.          ObjectCreate("W_S1 line", OBJ_HLINE, 0, Time[40], g_price_692);
  711.          ObjectSet("W_S1 line", OBJPROP_STYLE, STYLE_SOLID);
  712.          ObjectSet("W_S1 line", OBJPROP_WIDTH, 1);
  713.          ObjectSet("W_S1 line", OBJPROP_COLOR, Blue);
  714.       } else ObjectMove("W_S1 line", 0, Time[40], g_price_692);
  715.       if (ObjectFind("W_S2 line") != 0) {
  716.          ObjectCreate("W_S2 line", OBJ_HLINE, 0, Time[40], g_price_700);
  717.          ObjectSet("W_S2 line", OBJPROP_STYLE, STYLE_SOLID);
  718.          ObjectSet("W_S2 line", OBJPROP_WIDTH, 1);
  719.          ObjectSet("W_S2 line", OBJPROP_COLOR, Blue);
  720.       } else ObjectMove("W_S2 line", 0, Time[40], g_price_700);
  721.       if (ObjectFind("W_S3 line") != 0) {
  722.          ObjectCreate("W_S3 line", OBJ_HLINE, 0, Time[40], g_price_708);
  723.          ObjectSet("W_S3 line", OBJPROP_STYLE, STYLE_SOLID);
  724.          ObjectSet("W_S3 line", OBJPROP_WIDTH, 1);
  725.          ObjectSet("W_S3 line", OBJPROP_COLOR, Blue);
  726.       } else ObjectMove("W_S3 line", 0, Time[40], g_price_708);
  727.       if (ObjectFind("W_P line") != 0) {
  728.          ObjectCreate("W_P line", OBJ_HLINE, 0, Time[40], g_price_604);
  729.          ObjectSet("W_P line", OBJPROP_STYLE, STYLE_SOLID);
  730.          ObjectSet("W_P line", OBJPROP_WIDTH, 1);
  731.          ObjectSet("W_P line", OBJPROP_COLOR, LightBlue);
  732.       } else ObjectMove("W_P line", 0, Time[40], g_price_604);
  733.       if (ObjectFind("W_R1 line") != 0) {
  734.          ObjectCreate("W_R1 line", OBJ_HLINE, 0, Time[40], g_price_620);
  735.          ObjectSet("W_R1 line", OBJPROP_STYLE, STYLE_SOLID);
  736.          ObjectSet("W_R1 line", OBJPROP_WIDTH, 1);
  737.          ObjectSet("W_R1 line", OBJPROP_COLOR, Red);
  738.       } else ObjectMove("W_R1 line", 0, Time[40], g_price_620);
  739.       if (ObjectFind("W_R2 line") != 0) {
  740.          ObjectCreate("W_R2 line", OBJ_HLINE, 0, Time[40], g_price_628);
  741.          ObjectSet("W_R2 line", OBJPROP_STYLE, STYLE_SOLID);
  742.          ObjectSet("W_R2 line", OBJPROP_WIDTH, 1);
  743.          ObjectSet("W_R2 line", OBJPROP_COLOR, Red);
  744.       } else ObjectMove("W_R2 line", 0, Time[40], g_price_628);
  745.       if (ObjectFind("W_R3 line") != 0) {
  746.          ObjectCreate("W_R3 line", OBJ_HLINE, 0, Time[40], g_price_636);
  747.          ObjectSet("W_R3 line", OBJPROP_STYLE, STYLE_SOLID);
  748.          ObjectSet("W_R3 line", OBJPROP_WIDTH, 1);
  749.          ObjectSet("W_R3 line", OBJPROP_COLOR, Red);
  750.       } else ObjectMove("W_R3 line", 0, Time[40], g_price_636);
  751.    }
  752.    if (weekly == TRUE && midpivots == TRUE) {
  753.       if (ObjectFind("W_M5 label") != 0) {
  754.          ObjectCreate("W_M5 label", OBJ_TEXT, 0, Time[20], g_price_684);
  755.          ObjectSetText("W_M5 label", "W_M5 " + DoubleToStr(g_price_684, 4), 8, "Arial", CLR_NONE);
  756.       } else ObjectMove("W_M5 label", 0, Time[0], g_price_684);
  757.       if (ObjectFind("W_M4 label") != 0) {
  758.          ObjectCreate("W_M4 label", OBJ_TEXT, 0, Time[20], g_price_676);
  759.          ObjectSetText("W_M4 label", "W_M4 " + DoubleToStr(g_price_676, 4), 8, "Arial", CLR_NONE);
  760.       } else ObjectMove("W_M4 label", 0, Time[0], g_price_676);
  761.       if (ObjectFind("W_M3 label") != 0) {
  762.          ObjectCreate("W_M3 label", OBJ_TEXT, 0, Time[20], g_price_668);
  763.          ObjectSetText("W_M3 label", "W_M3 " + DoubleToStr(g_price_668, 4), 8, "Arial", CLR_NONE);
  764.       } else ObjectMove("W_M3 label", 0, Time[0], g_price_668);
  765.       if (ObjectFind("W_M2 label") != 0) {
  766.          ObjectCreate("W_M2 label", OBJ_TEXT, 0, Time[20], g_price_660);
  767.          ObjectSetText("W_M2 label", "W_M2 " + DoubleToStr(g_price_660, 4), 8, "Arial", CLR_NONE);
  768.       } else ObjectMove("W_M2 label", 0, Time[0], g_price_660);
  769.       if (ObjectFind("W_M1 label") != 0) {
  770.          ObjectCreate("W_M1 label", OBJ_TEXT, 0, Time[20], g_price_652);
  771.          ObjectSetText("W_M1 label", "W_M1 " + DoubleToStr(g_price_652, 4), 8, "Arial", CLR_NONE);
  772.       } else ObjectMove("W_M1 label", 0, Time[0], g_price_652);
  773.       if (ObjectFind("W_M0 label") != 0) {
  774.          ObjectCreate("W_M0 label", OBJ_TEXT, 0, Time[20], g_price_644);
  775.          ObjectSetText("W_M0 label", "W_M0 " + DoubleToStr(g_price_644, 4), 8, "Arial", CLR_NONE);
  776.       } else ObjectMove("W_M0 label", 0, Time[0], g_price_644);
  777.       if (ObjectFind("W_M5 line") != 0) {
  778.          ObjectCreate("W_M5 line", OBJ_HLINE, 0, Time[40], g_price_684);
  779.          ObjectSet("W_M5 line", OBJPROP_STYLE, STYLE_SOLID);
  780.          ObjectSet("W_M5 line", OBJPROP_WIDTH, 1);
  781.          ObjectSet("W_M5 line", OBJPROP_COLOR, Red);
  782.       } else ObjectMove("W_M5 line", 0, Time[40], g_price_684);
  783.       if (ObjectFind("W_M4 line") != 0) {
  784.          ObjectCreate("W_M4 line", OBJ_HLINE, 0, Time[40], g_price_676);
  785.          ObjectSet("W_M4 line", OBJPROP_STYLE, STYLE_SOLID);
  786.          ObjectSet("W_M4 line", OBJPROP_WIDTH, 1);
  787.          ObjectSet("W_M4 line", OBJPROP_COLOR, Red);
  788.       } else ObjectMove("W_M4 line", 0, Time[40], g_price_676);
  789.       if (ObjectFind("W_M3 line") != 0) {
  790.          ObjectCreate("W_M3 line", OBJ_HLINE, 0, Time[40], g_price_668);
  791.          ObjectSet("W_M3 line", OBJPROP_STYLE, STYLE_SOLID);
  792.          ObjectSet("W_M3 line", OBJPROP_WIDTH, 1);
  793.          ObjectSet("W_M3 line", OBJPROP_COLOR, Red);
  794.       } else ObjectMove("W_M3 line", 0, Time[40], g_price_668);
  795.       if (ObjectFind("W_M2 line") != 0) {
  796.          ObjectCreate("W_M2 line", OBJ_HLINE, 0, Time[40], g_price_660);
  797.          ObjectSet("W_M2 line", OBJPROP_STYLE, STYLE_SOLID);
  798.          ObjectSet("W_M2 line", OBJPROP_WIDTH, 1);
  799.          ObjectSet("W_M2 line", OBJPROP_COLOR, Blue);
  800.       } else ObjectMove("W_M2 line", 0, Time[40], g_price_660);
  801.       if (ObjectFind("W_M1 line") != 0) {
  802.          ObjectCreate("W_M1 line", OBJ_HLINE, 0, Time[40], g_price_652);
  803.          ObjectSet("W_M1 line", OBJPROP_STYLE, STYLE_SOLID);
  804.          ObjectSet("W_M1 line", OBJPROP_WIDTH, 1);
  805.          ObjectSet("W_M1 line", OBJPROP_COLOR, Blue);
  806.       } else ObjectMove("W_M1 line", 0, Time[40], g_price_652);
  807.       if (ObjectFind("W_M0 line") != 0) {
  808.          ObjectCreate("W_M0 line", OBJ_HLINE, 0, Time[40], g_price_644);
  809.          ObjectSet("W_M0 line", OBJPROP_STYLE, STYLE_SOLID);
  810.          ObjectSet("W_M0 line", OBJPROP_WIDTH, 1);
  811.          ObjectSet("W_M0 line", OBJPROP_COLOR, Blue);
  812.       } else ObjectMove("W_M0 line", 0, Time[40], g_price_644);
  813.    }
  814.    if (monthly == TRUE) {
  815.       if (ObjectFind("M_R1 label") != 0) {
  816.          ObjectCreate("M_R1 label", OBJ_TEXT, 0, Time[0], g_price_836);
  817.          ObjectSetText("M_R1 label", " M_R1 " + DoubleToStr(g_price_836, 4), 8, "Arial", CLR_NONE);
  818.       } else ObjectMove("M_R1 label", 0, Time[0], g_price_836);
  819.       if (ObjectFind("M_R2 label") != 0) {
  820.          ObjectCreate("M_R2 label", OBJ_TEXT, 0, Time[20], g_price_844);
  821.          ObjectSetText("M_R2 label", " M_R2 " + DoubleToStr(g_price_844, 4), 8, "Arial", CLR_NONE);
  822.       } else ObjectMove("M_R2 label", 0, Time[0], g_price_844);
  823.       if (ObjectFind("M_R3 label") != 0) {
  824.          ObjectCreate("M_R3 label", OBJ_TEXT, 0, Time[20], g_price_852);
  825.          ObjectSetText("M_R3 label", " M_R3 " + DoubleToStr(g_price_852, 4), 8, "Arial", CLR_NONE);
  826.       } else ObjectMove("M_R3 label", 0, Time[0], g_price_852);
  827.       if (ObjectFind("M_P label") != 0) {
  828.          ObjectCreate("M_P label", OBJ_TEXT, 0, Time[0], g_price_820);
  829.          ObjectSetText("M_P label", "M_Pivot " + DoubleToStr(g_price_820, 4), 8, "Arial", CLR_NONE);
  830.       } else ObjectMove("M_P label", 0, Time[0], g_price_820);
  831.       if (ObjectFind("M_S1 label") != 0) {
  832.          ObjectCreate("M_S1 label", OBJ_TEXT, 0, Time[0], g_price_908);
  833.          ObjectSetText("M_S1 label", "M_S1 " + DoubleToStr(g_price_908, 4), 8, "Arial", CLR_NONE);
  834.       } else ObjectMove("M_S1 label", 0, Time[0], g_price_908);
  835.       if (ObjectFind("M_S2 label") != 0) {
  836.          ObjectCreate("M_S2 label", OBJ_TEXT, 0, Time[20], g_price_916);
  837.          ObjectSetText("M_S2 label", "S2 " + DoubleToStr(g_price_916, 4), 8, "Arial", CLR_NONE);
  838.       } else ObjectMove("M_S2 label", 0, Time[0], g_price_916);
  839.       if (ObjectFind("M_S3 label") != 0) {
  840.          ObjectCreate("M_S3 label", OBJ_TEXT, 0, Time[20], g_price_924);
  841.          ObjectSetText("M_S3 label", "M_S3 " + DoubleToStr(g_price_924, 4), 8, "Arial", CLR_NONE);
  842.       } else ObjectMove("M_S3 label", 0, Time[0], g_price_924);
  843.       if (ObjectFind("M_S1 line") != 0) {
  844.          ObjectCreate("M_S1 line", OBJ_HLINE, 0, Time[40], g_price_908);
  845.          ObjectSet("M_S1 line", OBJPROP_STYLE, STYLE_SOLID);
  846.          ObjectSet("M_S1 line", OBJPROP_WIDTH, 1);
  847.          ObjectSet("M_S1 line", OBJPROP_COLOR, Blue);
  848.       } else ObjectMove("M_S1 line", 0, Time[40], g_price_908);
  849.       if (ObjectFind("M_S2 line") != 0) {
  850.          ObjectCreate("M_S2 line", OBJ_HLINE, 0, Time[40], g_price_916);
  851.          ObjectSet("M_S2 line", OBJPROP_STYLE, STYLE_SOLID);
  852.          ObjectSet("M_S2 line", OBJPROP_WIDTH, 1);
  853.          ObjectSet("M_S2 line", OBJPROP_COLOR, Blue);
  854.       } else ObjectMove("M_S2 line", 0, Time[40], g_price_916);
  855.       if (ObjectFind("M_S3 line") != 0) {
  856.          ObjectCreate("M_S3 line", OBJ_HLINE, 0, Time[40], g_price_924);
  857.          ObjectSet("M_S3 line", OBJPROP_STYLE, STYLE_SOLID);
  858.          ObjectSet("M_S3 line", OBJPROP_WIDTH, 1);
  859.          ObjectSet("M_S3 line", OBJPROP_COLOR, Blue);
  860.       } else ObjectMove("M_S3 line", 0, Time[40], g_price_924);
  861.       if (ObjectFind("M_P line") != 0) {
  862.          ObjectCreate("M_P line", OBJ_HLINE, 0, Time[40], g_price_820);
  863.          ObjectSet("M_P line", OBJPROP_STYLE, STYLE_SOLID);
  864.          ObjectSet("M_P line", OBJPROP_WIDTH, 1);
  865.          ObjectSet("M_P line", OBJPROP_COLOR, LightBlue);
  866.       } else ObjectMove("M_P line", 0, Time[40], g_price_820);
  867.       if (ObjectFind("M_R1 line") != 0) {
  868.          ObjectCreate("M_R1 line", OBJ_HLINE, 0, Time[40], g_price_836);
  869.          ObjectSet("M_R1 line", OBJPROP_STYLE, STYLE_SOLID);
  870.          ObjectSet("M_R1 line", OBJPROP_WIDTH, 1);
  871.          ObjectSet("M_R1 line", OBJPROP_COLOR, Red);
  872.       } else ObjectMove("M_R1 line", 0, Time[40], g_price_836);
  873.       if (ObjectFind("M_R2 line") != 0) {
  874.          ObjectCreate("M_R2 line", OBJ_HLINE, 0, Time[40], g_price_844);
  875.          ObjectSet("M_R2 line", OBJPROP_STYLE, STYLE_SOLID);
  876.          ObjectSet("M_R2 line", OBJPROP_WIDTH, 1);
  877.          ObjectSet("M_R2 line", OBJPROP_COLOR, Red);
  878.       } else ObjectMove("M_R2 line", 0, Time[40], g_price_844);
  879.       if (ObjectFind("M_R3 line") != 0) {
  880.          ObjectCreate("M_R3 line", OBJ_HLINE, 0, Time[40], g_price_852);
  881.          ObjectSet("M_R3 line", OBJPROP_STYLE, STYLE_SOLID);
  882.          ObjectSet("M_R3 line", OBJPROP_WIDTH, 1);
  883.          ObjectSet("M_R3 line", OBJPROP_COLOR, Red);
  884.       } else ObjectMove("M_R3 line", 0, Time[40], g_price_852);
  885.    }
  886.    if (monthly == TRUE && midpivots == TRUE) {
  887.       if (ObjectFind("M_M5 label") != 0) {
  888.          ObjectCreate("M_M5 label", OBJ_TEXT, 0, Time[20], g_price_900);
  889.          ObjectSetText("M_M5 label", " M_M5 " + DoubleToStr(g_price_900, 4), 8, "Arial", CLR_NONE);
  890.       } else ObjectMove("M_M5 label", 0, Time[0], g_price_900);
  891.       if (ObjectFind("M_M4 label") != 0) {
  892.          ObjectCreate("M_M4 label", OBJ_TEXT, 0, Time[20], g_price_892);
  893.          ObjectSetText("M_M4 label", " M_M4 " + DoubleToStr(g_price_892, 4), 8, "Arial", CLR_NONE);
  894.       } else ObjectMove("M_M4 label", 0, Time[0], g_price_892);
  895.       if (ObjectFind("M_M3 label") != 0) {
  896.          ObjectCreate("M_M3 label", OBJ_TEXT, 0, Time[20], g_price_884);
  897.          ObjectSetText("M_M3 label", " M_M3 " + DoubleToStr(g_price_884, 4), 8, "Arial", CLR_NONE);
  898.       } else ObjectMove("M_M3 label", 0, Time[0], g_price_884);
  899.       if (ObjectFind("M_M2 label") != 0) {
  900.          ObjectCreate("M_M2 label", OBJ_TEXT, 0, Time[20], g_price_876);
  901.          ObjectSetText("M_M2 label", " M_M2 " + DoubleToStr(g_price_876, 4), 8, "Arial", CLR_NONE);
  902.       } else ObjectMove("M_M2 label", 0, Time[0], g_price_876);
  903.       if (ObjectFind("M_M1 label") != 0) {
  904.          ObjectCreate("M_M1 label", OBJ_TEXT, 0, Time[20], g_price_868);
  905.          ObjectSetText("M_M1 label", " M_M1 " + DoubleToStr(g_price_868, 4), 8, "Arial", CLR_NONE);
  906.       } else ObjectMove("M_M1 label", 0, Time[0], g_price_868);
  907.       if (ObjectFind("M_M0 label") != 0) {
  908.          ObjectCreate("M_M0 label", OBJ_TEXT, 0, Time[20], g_price_860);
  909.          ObjectSetText("M_M0 label", " M_M0 " + DoubleToStr(g_price_860, 4), 8, "Arial", CLR_NONE);
  910.       } else ObjectMove("M_M0 label", 0, Time[0], g_price_860);
  911.       if (ObjectFind("M_M5 line") != 0) {
  912.          ObjectCreate("M_M5 line", OBJ_HLINE, 0, Time[40], g_price_900, Time[20], g_price_900);
  913.          ObjectSet("M_M5 line", OBJPROP_STYLE, STYLE_SOLID);
  914.          ObjectSet("M_M5 line", OBJPROP_WIDTH, 1);
  915.          ObjectSet("M_M5 line", OBJPROP_COLOR, Red);
  916.       } else ObjectMove("M_M5 line", 0, Time[40], g_price_900);
  917.       if (ObjectFind("M_M4 line") != 0) {
  918.          ObjectCreate("M_M4 line", OBJ_HLINE, 0, Time[40], g_price_892);
  919.          ObjectSet("M_M4 line", OBJPROP_STYLE, STYLE_SOLID);
  920.          ObjectSet("M_M4 line", OBJPROP_WIDTH, 1);
  921.          ObjectSet("M_M4 line", OBJPROP_COLOR, Red);
  922.       } else ObjectMove("M_M4 line", 0, Time[40], g_price_892);
  923.       if (ObjectFind("M_M3 line") != 0) {
  924.          ObjectCreate("M_M3 line", OBJ_HLINE, 0, Time[40], g_price_884);
  925.          ObjectSet("M_M3 line", OBJPROP_STYLE, STYLE_SOLID);
  926.          ObjectSet("M_M3 line", OBJPROP_WIDTH, 1);
  927.          ObjectSet("M_M3 line", OBJPROP_COLOR, Red);
  928.       } else ObjectMove("M_M3 line", 0, Time[40], g_price_884);
  929.       if (ObjectFind("M_M2 line") != 0) {
  930.          ObjectCreate("M_M2 line", OBJ_HLINE, 0, Time[40], g_price_876);
  931.          ObjectSet("M_M2 line", OBJPROP_STYLE, STYLE_SOLID);
  932.          ObjectSet("M_M2 line", OBJPROP_WIDTH, 1);
  933.          ObjectSet("M_M2 line", OBJPROP_COLOR, Blue);
  934.       } else ObjectMove("M_M2 line", 0, Time[40], g_price_876);
  935.       if (ObjectFind("M_M1 line") != 0) {
  936.          ObjectCreate("M_M1 line", OBJ_HLINE, 0, Time[40], g_price_868);
  937.          ObjectSet("M_M1 line", OBJPROP_STYLE, STYLE_SOLID);
  938.          ObjectSet("M_M1 line", OBJPROP_WIDTH, 1);
  939.          ObjectSet("M_M1 line", OBJPROP_COLOR, Blue);
  940.       } else ObjectMove("M_M1 line", 0, Time[40], g_price_868);
  941.       if (ObjectFind("M_M0 line") != 0) {
  942.          ObjectCreate("M_M0 line", OBJ_HLINE, 0, Time[40], g_price_860);
  943.          ObjectSet("M_M0 line", OBJPROP_STYLE, STYLE_SOLID);
  944.          ObjectSet("M_M0 line", OBJPROP_WIDTH, 1);
  945.          ObjectSet("M_M0 line", OBJPROP_COLOR, Blue);
  946.       } else ObjectMove("M_M0 line", 0, Time[40], g_price_860);
  947.    }
  948.    return (0);
  949. }
复制代码
如何访问权限为100/255贴子:/thread-37840-1-1.html;注册后仍无法回复:/thread-23-1-1.html;微信/QQ群:/thread-262-1-1.html;网盘链接失效解决办法:/thread-93307-1-1.html

TOP

如何访问权限为100/255贴子:/thread-37840-1-1.html;注册后仍无法回复:/thread-23-1-1.html;微信/QQ群:/thread-262-1-1.html;网盘链接失效解决办法:/thread-93307-1-1.html

TOP

TOP

返回列表