[Archive!] Any rookie question, so as not to clutter up the forum. Professionals, don't pass it by. Couldn't go anywhere without you - 2. - page 516

 
Vinin:

I can only answer for mine, and not all of them. To say - worthy of attention or not - must see the code
#property copyright "Yuriy Tokman (YTG)"
#property link      "yuriytokman@gmail.com"

#property indicator_chart_window
#property indicator_buffers 2
#property indicator_color1 Red
#property indicator_color2 Lime
//----
extern int Bars_shift=32;
//----
double B0[];
double B1[];
//+------------------------------------------------------------------+
//| Custom indicator initialization function                         |
//+------------------------------------------------------------------+
int init()
  {
//---- indicators
   SetIndexStyle(0,DRAW_ARROW,STYLE_SOLID,2);
   SetIndexArrow(0,234);
   SetIndexBuffer(0,B0);   
   
   SetIndexStyle(1,DRAW_ARROW,STYLE_SOLID,2);
   SetIndexArrow(1,233);
   SetIndexBuffer(1,B1);
//----
   return(0);
  }
//+------------------------------------------------------------------+
//| Custom indicator deinitialization function                       |
//+------------------------------------------------------------------+
int deinit()
  {
//----
   
//----
   return(0);
  }
//+------------------------------------------------------------------+
//| Custom indicator iteration function                              |
//+------------------------------------------------------------------+
int start()
  {
//----
   int high, low, limit;
   double atr = iATR(Symbol(),0,20,0)/2;
   int counted_bars=IndicatorCounted();   
   if(counted_bars<0) return(-1);
   if(counted_bars>0) counted_bars--;
   limit=Bars-counted_bars;
   
   for(int i=0; i<limit; i++)
   { 
    high = iHighest(Symbol(),0,MODE_HIGH,Bars_shift,i-Bars_shift/2);
    low =  iLowest (Symbol(),0,MODE_LOW,Bars_shift,i-Bars_shift/2);
    if(i==high)B0[i]=High[high]+atr;
    if (i==low)B1[i]=Low[low]-atr;
   }   
//----
   return(0);
  }
//+------------------------------------------------------------------+
Here is the code, estimate, if not difficult, I will be very grateful )))
 
demlin:
Here's the code, appreciate it if you don't mind, I'd really appreciate it )))
It's actually Nick Bilac's super-signals indicator. Have a look at his discussion in the database.
 

demlin:
Which indicators do you think are worthy of attention?


I use RVI, in most cases it sends right signals for moves, sometimes it is easy to cheat if the distance between high and low is big and open/close is very small, then it sends signals of rising or falling prices and on the next bar the price can go sharply in the opposite direction.

p.s. I don't use it according to the instructions, I use the angle formed by the indicator for the last 3 bars

 
demlin:
Here's the code, please appreciate it if you don't mind, I'd really appreciate it ))))

Lies on the story, draws pretty pictures. Up.
 
demlin:

Greetings all!

Could you please tell me the code to make the owls redraw the indent on every tick.


The term " owls" is not clear - is the code with which to make the EA redraw the turkey on every tick, or the code with which to absolutely make it redraw the turkey on every tick? Or maybe there is some other word that corresponds to the word "owls"? For example, in conjunction with something, or maybe it's still about birds, about owls? Or something I haven't listed here?
 
drknn:

The term " owls" is unclear - is it a code that can make the EA redraw the indicator at every tick, or the code that can absolutely make the EA redraw the indicator at every tick? Or maybe there is some other word that corresponds to the word "owls"? For example, in conjunction with something, or maybe it's still about birds, about owls? Or something I haven't listed here?

"...you can make the owls redraw the turkey at every tick..."

A wild picture presents itself:

A bunch of angry owls chasing a poor turkey around the hen house with an incomprehensible demand to redraw something... And he's only good for soup... Poor guy...

 
granit77:
This is actually Nick Bilac's super-signals indicator. Check out his discussion at the base.

Man, judging by the discussion it's not an indicator at all. But the most interesting thing is that it is on another site under a different name and with great advertising ))))
 
Vinin:

Lies on history, paints pretty pictures. Screw it.
Thanks, I will.
 

Hi all!


Can you tell me if using an expression (in terms of data conversion) is correct?

int noequal=NormalizeDouble(GlobalVariableGet("noequal"),0);
 
Pyro:

Hi all!

Can you tell me if using an expression is correct (in terms of data conversion) :

This is the same:

int noequal=GlobalVariableGet("noequal");
Reason: