Alert Needed on Colored MACD - different from standard
Please add alert when crosses zero line. thank you
Printable View
Alert Needed on Colored MACD - different from standard
Please add alert when crosses zero line. thank you
Yes, this is good indicator ... and as I see - Igorad coded email alert too:
Attachment 1398
Hi igorad,
Thank's for all the nice indicators.
I think there is a little bug on the AdaptiveLaguerreRSI_v3.
When I click on the AdapatativeMode to put it on 1, the chart fade away.
Hi ffoo,
This indicator? http://newdigital-world.com/trading-....html#post2857
If you change Length to 11 for example so it will work.
I am not a coder but I think that Length 24 is too much for AdapatativeMode = 1.
Hi ffoo,
Please take a look at this post.
Regards,
Igor
It work fine now, thank you guys !
Hi, guys!
Is it possible to create indicator which one will show the level of average Stop loss for multytrades in accordance with risk % indicated by inputs?
I am using indicator like this for getting calculation of an average entry price. (attached)
Below the picture with example.
Blue line is level of Average entry calculated by indicator.
Red line is manually calculated level of Average stop loss.
Attachment 1513
Attachment 1514
In ьн mind the formula for calculation should be like below:
StopLossLevel =AverageEntryLevel – StopLoss
StopLoss = RiskMoney / PositionSize* TickSize/ UnitCost
RiskMoney = Size * Risk / 100
extern double Risk = 1; // Risk tolerance in percentage points
Size = AccountBalance()
PositionSize= OrderLots()
UnitCost = MarketInfo(Symbol(), MODE_TICKVALUE);
TickSize = MarketInfo(Symbol(), MODE_TICKSIZE);
Hi DmitryFX,
Please take a look at the improved Show_AverageEntryPrice_v1 indicator where I added some new options and parameters including the average StopLoss Levels plus now you have ability to work with Long and Short Positions simultaneously.
Code:extern bool ShowMarketPrice = true;
extern color ColorMarketPrice = OrangeRed;
extern bool ShowAvgEntryPrice = true;
extern color ColorAvgBuyEntry = LimeGreen;
extern color ColorAvgSellEntry = Orange;
extern bool ShowStopLoss = true;
extern double RiskFactor = 5; // Risk Factor(in %) for StopLoss calculation
extern color ColorBuyStopLoss = DeepSkyBlue;
extern color ColorSellStopLoss = LightCoral;
extern color SwapColorLong = Lime;
extern color SwapColorShort = Red;
extern bool ShowProfit = true;
extern string FontName = "Arial Black";
extern int FontSize = 10;
extern color ColorProfit = DarkSalmon;
extern bool ShowLineLabels = true;
extern bool ShowSwapInfo = true;
Attachment 1540
Aslo you can use the updated ManualTrader_v1.2 to set StopLoses by the Risk Factor.
Regards,
Igor
How Igorad,
I just attached this indicator ... but I do not see the level/line for buy and sell ... so - how to use this indicator?
Attachment 1550
Attachment 1551
yes, that's right - i opened 2 trades and see :
Attachment 1552
Igor, you are the best! Just the perfect!!!!
Attachment 1553
Igor
You have coded/posted some Advanced versions of good old indicators in the forum but 'Step Indicators' are still remain to be advanced !
Do you think it's good to make advanced versions of Step indicators ?
In picture am using step indicators (attached) which Igor has brilliantly coded few years ago are still in fashion :)
Thanks
Hi Members, I need a period converter script to generate 10 minute period charts.
I would be grateful if you have one, use one or know how I could get one.
thanks
Jozo
Hi Jozo,
There is period converter script in Metatrader 4 (Navigator - Scripts). There is only one parameter there - ExtPeriodMultiplier.
Example - you want to receive M10 timeframe (to generate 10 minute period chart). So, you open M1 chart and attach script to this M1 chart with ExtPeriodMultiplier = 10 (because M1 by 10 = M10 chart). After that - you go to MT4 menu on the top left of metatrader - File - Open Offline and find your M10 chart.
For example - I attached this script in EURUSD M1 chart and get M10 :
Attachment 1755
Thank you for your advice. I have used this for a long time, but stopped working - so thought was defunct! Now re-installed it - works perfectly again. Thanks NewDigital.
Igor, again i want to express my respect for your job!
Can i ask you about one more future for this very useful indy?
I don't like too messy charts that's why i switched off all lines from chart. But i want to have information
about places where trades were opened.
For this purpose i am using special script now. Is it possible to integrate it to the code of this indy?
Hi Dmitry,
Sure it's possible to plot information about opened positions on the chart. Please check out the Show_AveragePriceEntry_v2 with the option to show such information if parameter ShowOpenPosition = true.
Attachment 1829
Regards,
Igor
Hi Igorad.
I don't remember have seen an indicator like AllBollingerBands. Do you have it? Can you make it?
Regards.
Just some information about how to trade Pin Bar - read this post.
Igor (or someone else ) :(grin):
Can you help modifying my DT Lauer indi. I use this extensively, and have always wished for it to draw rectangles (high+low)
from the candle instead of just a dot like now. Ref. image.
Anyone?
Attachment 2436
First of all thnx. for this great forum. i could not find requests so shared here.
Anyone has coded the Trend Thrust Indicator (TTI) by Buff Pelz Dormeier
https://www.bigmiketrading.com/ninja...cator-tti.html
''The Easy Language code was indeed provided by Dormeier and can be retrieved from technical.traders.com.
The code for the Trend Thrust Indicator accesses an additional function BD.VWMA, which you did not include with your file. The full code is shown below.''
inputs: price(close), Fastlen(12), Slowlen(26), W(9), volToday(true);
variables: fastavg(0), slowavg(0), sprd(0), avgsprd(0), sLOW(0), vavg(0), FAST(0),
Vfactor(0), IVfactor(0), m(0), sprdiff(0), mcad(0), VD(0);
fastavg = bd.vwma(Price, FastLen, volToday);
slowavg = bd.vwma(Price, slowLen, volToday);
m = xaverage(close, fastlen) - xaverage(close, slowlen);
if xaverage(volume,slowlen) <> 0 then
Vfactor = (bd.vwma(volume,fastlen,voltoday)/xaverage(volume,slowlen))*10;
if xaverage(volume,fastlen) <> 0 then
IVfactor = (bd.vwma(volume,slowlen,voltoday)/xaverage(volume,fastlen))*10;
if ivfactor <> 0 and vfactor <> 0 then
FAST = FASTAVG/(VFACTOR/IVFACTOR);
if ivfactor <> 0 and vfactor <> 0 then
SLOW = (IVFACTOR/VFACTOR)* SLOWavg;
sprd = (fast - slow);
Vavg = BD.VWMA (vfactor,fastlen,voltoday)/xaverage (ivfactor,slowlen) *W;
avgsprd = round (bd.vwma(sprd,vavg,voltoday),3);
sprdiff = (sprd - avgsprd);
mcad = xaverage((m),(w));
vd = sprdiff-mcad;
plot1 (sprd, "sprd");
plot2 (avgsprd, "avg sprd");
plot3 (vd, "Buff diff");
VWMA function (volume-weighted simple moving average)
[LegacyColorValue = true];
{************************************************* **************************************
// fileName: BD.VWMA
// Logic by Buff Dormeier
// Programming code written by:
Fred G. Schutzman, CMT
27 Briarwood Drive
New City, NY 10956
Tel: (914) 634-2978
Fax: (914) 634-1890
Email: FredSchutzman@attglobal.net
Internet: www.fredschutzman.com
// Function returns a Volume Weighted SMA
// futures volume is always reported 1-day late
// therefore, this function has the ability to calculate a MA with an offset of 1
// Date last changed: January 30, 2000
************************************************** **************************************}
Inputs: price(numericSeries), { data to be averaged; e.g. close }
length(numericSimple), { length of moving average }
volToday(trueFalse); { true = volume is available for today (e.g. stocks)
false = volume is NOT available for today (e.g.futures) }
Vars: beg(0), { days back to begin working with for average }
sumOfVol(0), { sum of volume }
vwPx(0), { volume weighted price }
vwMa(0), { volume weighted moving average }
counter(0); { counter }
{ initialize/reset first 4 variables }
if currentBar = 1 then begin
if volToday = true then
beg = 0
else if volToday = false then
beg = 1;
end;
sumOfVol = 0;
vwPx = 0;
vwMa = 0;
{ update sumOfVol variable on each bar }
for counter = beg to (length-1+beg) begin
sumOfVol = sumOfVol + volume[counter];
end;
{ update vwPx and vwMa variables on each bar }
for counter = beg to (length-1+beg) begin
if sumOfVol > 0 then
vwPx = price[counter] * volume[counter] / sumOfVol;
vwMa = vwMa + vwPx;
end;
{ return the VWMA if enough data is present, else return 0 }
if length >= 1 and volume[length-1+beg] > 0 then
BD.VWMA = vwMa
else
BD.VWMA = 0;
Dear igorad ur all type indicators so nice and wonderfull.
all volume , all oscillator, all trend will be also nice, if u make.
Hi levonisyas,
Please check out the TTI_v1(Trend Thrust Indicator) by Buff Pelz Dormeier. But here is a problem because I didn't find how this indicator looks like even after reading the corresponding chapter of his book "Investing with Volume Analysis".
Code:extern int TimeFrame = 0; //TimeFrame in min
extern int Price = 0; //Price Mode (0...6)
extern int FastLength = 12; //Fast Period of smoothing
extern int SlowLength = 26; //Slow Period of smoothing
extern int SignalLength = 9; //Signal Period
Attachment 2861
Regards,
Igor
Dear igor best coder that i see, thank u very much.
%90 of people use tti as same as yours like Volume-Weighted MACD. But %10 use it at the main Windows seems like MA.
is trendup/trenddown shows reverse?
U did perfect. it is so enough for me. Again thank u very much.
Just interesting website found to practise in forex : http://forex-game.net/forex-trading-game/
Hi igor
Do u know Cumulative distribution of an indicator or can u make?
EXP: forcing display MA to 0--100 value. Like RSI, SO etc.
Cumulative distribution function - Wikipedia, the free encyclopedia
P.S. MT4 draging the moving average to subwindow "Apply to:" and set to "First Indicator`s Data" can be a solution?
Hi.
This is something I would appreciate coding. Maybe this could go on the Ehlers thread if you decide to code it. I have not seen it elsewhere.
He mentions this, nearly as an afterthought, on page 212 of Rocket. I find it reasonably useful, and have modified it slightly - the 2*P - P(-1) speeds it up just a little without providing false signals as compared to the original.
There are two triggers, his 4 weighted moving average, and mine, which is just if the signal is up or down today. Not much difference between the two. I like signals +1 and -1, as sometimes it is difficult to see if lines have crossed...
In Metastock language, I have made it this. W is linear weighted moving average. MP() is your price 4, and Ref(MP(),-1) is previous bar. Pretty simple, yes?
WMA1:=Mov(2*MP()-Ref(MP(),-1),7,W);
WMA2:=Mov(WMA1,7,W);
Predict:=2*WMA1-WMA2;
Trigger:=Mov(predict,4,W);
{alternative signal types - this is what I would like to see on the screen, either what I call "TR" or "zero"}
TR:=If(trigger<predict,1,If(trigger>predict,-1,0));
zero:=If(predict>Ref(predict,-1),1,If(predict<Ref(predict,-1),-1,0));
That is just the signal. Entry is for people to be creative about. Anyway, as this is my first post I thought I'd start with something not too demanding (very basic!!) I hope.
I have some other things, too - maybe sometime later.
Regards, Lloyd
ps - of course, W is just the suggested method of average, as is the time period and type of price etc.
Hello, dear.
There is a very old indicator Kovalev and I have long tried to apply it.
Perhaps it is not the Grail, but very original.
In addition, it is late.
I have long wanted to see it with a faster MA, help me, please.
Thanks in advance.
Best regards.
Hi Igor,
I am desperately looking for Bollinger bands I can use with fractional Standard deviations, e.g. 2.5. You earlier provided "Better Bollinger bands" on another site.
Could you provide it here for us? Thanks
Jozo
I wish I could find some very informative books on trading somewhere in the forum
It was coded here
Just for information
Just about books - you can read this thread http://newdigital-world.com/forex-tr...hing-read.html for example
Hello everybody,
I'm developing a modular code to forget the most common parameters in a EA. I just want get multiple modules like:
- money managment module (who manage the volume of the operations)
- trader module (who buys and sells the orders and manage it - Trailing stop, buy, sell, stop, hide orders, etc.)
- Logging module (who logging in some place - MySQL, screen, alerts, etc.) the code
- Error's handle module (who try to solve the errors in trading and other general errors)
- Information module (who has the information of the market - spread, buy, sell, etc.-)
- News module (who takes care about the notices from different sources)
Could anyone help me in some of the modules? I mean, I need do it from 0 and I appreciate some help to complete the job. The idea is that at the final, the code will be so modularized and only care about the indicators to do trading.
Thank you in advance!
Dream3r
Hi dream3r
Perhaps u can find something
Expert Advisor Builder for MetaTrader 4 and MetaTrader 5, EATree
fxDreema EA Builder: Simplifies Automated Trading
Hello again!
Thank you levonisyas, but it's so different of my initial idea. What I really want is build my own code. Also, I want convert the modules into a complex and simple system at the same time. How? The modules are completaly libraries and just are called when is necessary. The libraries/modules are individual and are just created for do the core of the system (the configuration of when and how trade the sistem with this indicators, etc.).
The main idea is build each module separetaly. When I need some module, I create a "puzzle" with the modules. For example: I need a simple median cross? Easy: I get the Money Managment module, the trader module and with one or two indicators for this exclusivity strategy, I create the EA, only writing the specific code of the indicators and using the modules of Money Managment and the trade.
Could someone help me on this?
Thank you in advance!
Dream3r
As I remember - coder KimIV already made module EA but it was many years ago. His money management module was famous one. But it was mnay years ago on some russian forum ... I will try to find the links.
Thank you newdigital.
Don't you find it interesting? I mean, it let you program faster and focus only in "the strategy" instead of Money managment, trailing stops, etc.
Regards