Mechanical operation product analysis.

Source: Internet
Author: User
Tags drawtext
Parameters

 

Input parameters Input amount G
     
Output Parameters Gradient N
  Unit U
     
Note Truerange Tr = max (high-low, high-ref (close, 1), ref (close-1)-low)
  N N = MA (TR, 20)
  U U = (0.01 * G)/n = (0.01 * G)/Ma (TR, 20)

 

Extended version

Input parameters Input amount G
  Latest purchase price NP
     
Output Parameters Gradient N
  Unit U
  Buy point BP (buy point)
Selling point SP (Failover point)
Delisting Lp (leave Point)
     
Note Truerange Tr = max (high-low, high-ref (close, 1), ref (close-1)-low)
  N N = MA (TR, 20)
  U U = (0.01 * G)/n = (0.01 * G)/Ma (TR, 20)
  BP BP = NP + n/2
SP SP = NP-N/2
Lp Lp = NP-2N

 

Formula demonstration

Rg1: = MA (close, 27 );
Rg2: = (close-Rg1)/(rg1.) * (100 );
Rg3: = MA (rg2, 2 );
Rg4: = barslast (-10), Rg3) = 1 ));
Rg5: = (Rg3 <(-10) and (rg4> 3 );
V1: = C/Ref (MA (C, 36), 6) * 10;
Rf1: = EMA (close, 3 );
Rf2: = (SMA (max (close-rf1), 0), 9, 1)/SMA (ABS (close-rf1), 9, 1) * 100 );
Rf3: = (100-(3 * SMA (close-llv (low, 75)/(HHV (high, 75)-llv (low, 75) * 100), 30, 1) + (2 * SMA (close-llv (low, 75)/(HHV (high, 75) -llv (low, 75) * 100 )));
Rf4: = (100-(3 * SMA (open-llv (low, 75)/(HHV (high, 75)-llv (low, 75) * 100), 30, 1) + (2 * SMA (open-llv (low, 75)/(HHV (high, 75) -llv (low, 75) * 100 )));
Rf5: = (HHV (high, 21)-close)/(HHV (high, 21)-llv (low, 21) * 100)-10 );
Rf6: = (close-llv (low, 21)/(HHV (high, 21)-llv (low, 21) * 100 );
Rf7: = SMA (rf6, 16,8), 25,8)-SMA (rf5, 30,8 );
K0: = If (rf2 <14) and L <REF (L, 1) and V1 <8.8 and rf7 <-65,50, 0 );
K1: = If (k0> 1 and C> O, 50, 0 );
K2: = If (k0> 1 and C/L> 1.045, 50, 0 );
K3: = If (ref (K0, 1)> 0 and K0 = 0, 10, 0 );
Preparation 1: If (k0> 3 and rg5 =, 0), stick, color10ffff, linethick3;
K4: = If (max (K1, K2), K3) and ref (prepare)>, 0 );
Entry 1: If (K4> 0 and ref (K4, 1) =, 0), stick, color00ff00, linethick3;
Prepare 2: If (k0> 3 and rg5> 0, 16, 0), stick, colorff00ff, linethick3;
K5: = If (max (K1, K2), K3) and ref (prepare 2, 1)> 0, 30, 0 );
Arrival 2: If (K5> 1 and ref (K5, 1) =, 0), stick, colorffff00, linethick3;
T1: = barslast (Entry 1)> 0 and barslast (Entry 1) <24 and cross (EMA (close, 8), EMA (close, 16 ));
T2: = barslast (site arrival 2)> 0 and barslast (site arrival 2) <24 and cross (EMA (close, 8), EMA (close, 16 ));
Starting with 1: If (T1, 60, 0), stick, coloryellow, linethick3;
2: If (t2, 60, 0), stick, colormagenta, linethick3;
Drawtext (Site 1, 28, 'site 1 '), color10ff10;
Drawtext (preparation 1, 12, 'Preparation 1'), color10ffff;
Drawtext (Site 2, 28, 'site 2 '), colorffff00;
Drawtext (prepare 2,12, 'Prepare 2'), colorff00ff;
Drawtext (starting with 1, 40, 'buy1 '), colorwhite;
Drawtext (starting with 2, 40, 'bu2'), colorwhite;
TR: = max (high-low, high-ref (close, 1), ref (close, 1)-low );
N: Ma (TR, 20 );
Unit: (Act/100)/n/100;

 

A formula for the sales ladder, but this formula does not work because the purchase price of each stock is different. You can only calculate by yourself according to N and NP.

If (Np = 0) Np = open;
TR: = max (high-low, high-ref (close, 1), ref (close, 1)-low );
N: = MA (TR, 20 );
U: = (g/100)/n/100;
BP: = NP + n/2;
SP: = NP-N/2;
LP: = NP-2 * N;
Horline (1, BP, 1, 3)

 

The general idea is to use a formula to predict the purchase signal.

C1: = EMA (C, 6)> REF (EMA (C, 6), 1); // The slope of EMA (C, 6) Up

C2: = between (EMA (C, 18)/EMA (C, 6), 0.9, 1) // EMA (C, 6) and EMA (C, 18) relatively close time

If (C1 and C2)

Buy;

 

To learn more, leave a message ~

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.