ZigZagBot free
Description
Strategy using ZigZag Indicator.
The zigzag is an Indicator that is usually used as a filter of small price momements.
Warning! Executing the following cBot may result in loss of funds. Use it at your own risk.
Notification Publishing copyrighted material is strictly prohibited. If you believe there is copyrighted material in this section you may use the Copyright Infringement Notification form to submit a claim.
Formula / Source Code
/ / # r e f e r e n c e : . . \ I n d i c a t o r s \ Z i g Z a g . a l g o u s i n g c A l g o . A P I ; u s i n g c A l g o . I n d i c a t o r s ; n a m e s p a c e c A l g o . R o b o t s { [ R o b o t ( ) ] p u b l i c c l a s s Z i g Z a g C y c l e B o t : R o b o t { p r i v a t e P o s i t i o n _ p o s i t i o n ; p r i v a t e Z i g Z a g _ z i g Z a g ; p r i v a t e d o u b l e _ p r e v V a l u e ; [ P a r a m e t e r ( D e f a u l t V a l u e = 1 2 ) ] p u b l i c i n t Z z D e p t h { g e t ; s e t ; } [ P a r a m e t e r ( D e f a u l t V a l u e = 5 5 0 ) ] p u b l i c i n t S t o p L o s s { g e t ; s e t ; } [ P a r a m e t e r ( D e f a u l t V a l u e = 5 ) ] p u b l i c i n t Z z D e v i a t i o n { g e t ; s e t ; } [ P a r a m e t e r ( D e f a u l t V a l u e = 3 ) ] p u b l i c i n t Z z B a c k S t e p { g e t ; s e t ; } [ P a r a m e t e r ( D e f a u l t V a l u e = 1 0 0 0 0 0 , M i n V a l u e = 0 ) ] p u b l i c i n t V o l u m e { g e t ; s e t ; } p r o t e c t e d o v e r r i d e v o i d O n S t a r t ( ) { _ z i g Z a g = I n d i c a t o r s . G e t I n d i c a t o r <