Download MetaTrader 5

Indicators: Delta Force

To add comments, please log in or register
MetaQuotes Software Corp.
Moderator
184433
MetaQuotes Software Corp.  

Delta Force:

Delta Force Indicator.

Author: Collector

cozyman
247
cozyman  
This indicator needs to be reworked, it only shows up volume
Stanislav Korotky
19892
Stanislav Korotky  
cozyman:
This indicator needs to be reworked, it only shows up volume
According to the source code, it does show up and down sums of candles in corresponding colors - green and red. Why do you think it only works for "up" volumes?
rajakesar
235
rajakesar  

It only does show up volumes.  No red bars at all.

 

Delta Farce 

Stanislav Korotky
19892
Stanislav Korotky  
rajakesar:

It only does show up volumes.  No red bars at all.

Replace the lines:

if(!SetIndexBuffer(0, ind_buffer1) &&
      !SetIndexBuffer(1, ind_buffer2) &&
      !SetIndexBuffer(2, ind_buffer3))
      Print("cannot set indicator buffers!");

 with

if(!SetIndexBuffer(0, ind_buffer1) ||
      !SetIndexBuffer(1, ind_buffer2) ||
      !SetIndexBuffer(2, ind_buffer3))
      Print("cannot set indicator buffers!");

Actually this indicator is poorly coded. The 3-d index buffer is not used as well as many other variables. And it recalculates all bars on every tick.

rajakesar
235
rajakesar  
Thank you.  That did it.
To add comments, please log in or register