6区 - ページ 34

 
gpwr:
...

酔っぱらって職業も定まらず: 相場は適当にさまようもの...。

追加...

Plz, make edits...:-)

" 酔って 明確な職業を持たない:市場は気ままな放浪者。これからもマティーニなどを飲み続けてくださいね。":-)

 
gpwr: 追加...
市場の売春婦:客を積めば積むほど不利になる ))))
 
+長く吸えば吸うほど、最終的に少し利益が出る可能性が高くなる )))
 
Dr.Drain:
そろそろコンデンサーを入れる時期なのでしょうか?:-)))
いよいよ数式によるインジケータの作成です。
 
DmitriyN:

以下は、Swinosaurs関数をベースにしたインジケーターのコードです。


あるべき姿に作られ、マッチングは正確で、容量と抵抗は自己選択的である :

//+------------------------------------------------------------------+
//|                                                _2_DoidsSheme.mq4 |
//|           Copyright © 2012. XrustSolution. mail:xrustx@gmail.com |
//|          https://www.youtube.com/user/opmlv http://forexrust.info |
//+------------------------------------------------------------------+
#property copyright "Copyright © 2012. XrustSolution. mail:xrustx@gmail.com"
#property link      "https://www.youtube.com/user/opmlv http://forexrust.info"
//+------------------------------------------------------------------+
//| Super Global Variables                                           |
//+------------------------------------------------------------------+
#property indicator_chart_window
#property indicator_buffers 1
#property indicator_color1 Red
//+------------------------------------------------------------------+
//| Extern Variables                                                 |
//+------------------------------------------------------------------+
extern string  ЕмкостьКонденсатора          = "= Начальный период МА";
extern    int  Capacity                                     = 7      ;
extern string  СопротивлениеУтечки                  = " конденсатора";
extern double  Resistance_C1                                = 100    ;
extern string  Резистор_В_Цепи_Заряда               = " конденсатора";
extern double  Resistance_R1                                = 10     ;
extern string  Резистор_В_Цепи_Разряда              = " конденсатора";
extern double  Resistance_R2                                = 10     ;
extern string  Порог_пробоя_Варистора         = "Максимальный период";
extern double  SafePerid                                    = 100    ;
extern string  МетодСбросаЗаряда= "true=Ограничение/false=Сброс на 0";
extern   bool  ResetMetod                                   = true   ;
extern    int  MoovingMetod                                 = 0      ;
extern    int  MoovingPrice                                 = 0      ;
//+------------------------------------------------------------------+
//|   Includes                                                                  |
//+------------------------------------------------------------------+
//#include <OBJECTS_CLASSES.mqh>
//#include <AlertsAndSounds.mqh>//GetInfo("");          
//+------------------------------------------------------------------+
//|   Defines & Global variavles                                     |
//+------------------------------------------------------------------+
#define empty  EMPTY_VALUE

//+------------------------------------------------------------------+
//--- buffers
double diods[];
//+------------------------------------------------------------------+
//| Custom indicator initialization function                         |
//+------------------------------------------------------------------+
void init(){
        //---- indicators
   SetIndexStyle(0,DRAW_LINE);
   SetIndexBuffer(0,diods);
        //----
return;}
//+------------------------------------------------------------------+
void deinit(){return;}
//+------------------------------------------------------------------+
void start(){
   //----
                
   //----
   static int preLimit=0;
   static double prerp = 0;         
   int i, ii, x, y, counted = IndicatorCounted();
   if (counted > 0) counted--;
   int limit = Bars - counted;
   int per   = Period();
   string sy = Symbol();
   string txt="";
   double res=0,pres=0,diff=0,pdiff=0,koff=0;
   if(limit<=preLimit){limit=preLimit+1;}
        //----
   for(i=limit;i>=0;i--){
        res = iMA(sy,per,1,0,MoovingMetod,MoovingPrice,i);
        diff =  MathAbs(res-iMA(sy,per,1,0,MoovingMetod,MoovingPrice,i+1));
        if(diff > pdiff){
          koff+=MathAbs(diff-pdiff)/Resistance_R1;
        }else
        if(diff < pdiff){
          koff-=MathAbs(diff-pdiff)/Resistance_R2;
        }
        koff-=1/Resistance_C1;          
        
        pdiff=diff;
        if(koff>SafePerid){
          if(ResetMetod){
             koff = koff-SafePerid;
          }else{
             koff = 0;
          }   
        }
        if(koff<-(Capacity-1)){koff=-Capacity+1;}
        if(Capacity+koff>preLimit){preLimit = Capacity+koff;}
        diods[i] = iMA(sy,per,Capacity+koff,0,MoovingMetod,MoovingPrice,i+1);
   }
   //----
return;}
//+------------------------------------------------------------------+
 

回路も変えてみました。

 
Dr.Drain:

暗いところにいる人のために説明すると、...えーと...。この式は、コンデンサの放電を、指数関数的に無限大でゼロに減衰することで記述するもので、その通りである。

P.S. そして、これがその料金です。


一般的な見方を示すと、tが時間を意味するならば、指数exponentにはより多くのパラメータが存在することがわかる。


アブソリュート・コンバーター- 確実に書き込む
 
FAQ: 回路も変更しました。

バリスタってなんのためにあるの?落雷からコンデンサーを守るため?
 
回路によるものと思われ、チャート=周期増加の制限、例えばGEPの場合、入力電圧に対して加速度があるため、GEP=MOLNIONとなる))
 
ただ、わからないんです...。これでいいのかと思い始めている...。 ここで、加速度を上げるとMAは減速し、逆に加速度を下げるとMAは減速します。