Can anyone help me code an indicator that plots the New york session closing prices as a line graph on an mt4 chart? Would really appreciate it. Tnx guys.
PATIENCE PAYS. TRADE SAFE.
I will code your pivot EAs for no charge 23 replies
I will code your scalping EAs for no charge 163 replies
Oanda MT4 - Indicators and EAs not showing 2 replies
EAs and indicators relating to moutaki... 22 replies
InterbankFX has loaded its MT4 platform with custom EAs, indicators and scripts 1 reply
DislikedCyber 1
please if possible modify this script:
FXPT_BuySellUnlimitedOrders.mq4
I need 2 script
One for buy,
one for sell
'm scalper, need to enter fast, no use true and false in buy and sell
It can be added line drawn in charts for change take profit.
It can be added line drawn in charts for change stop loss
only move the line to change TP and SL
Sorry for my English is horribleIgnored
DislikedAk386-
As requested One for buy, one for sell.
comment out the following line if you do not want to be prompted when dropped on chart
//#property show_inputsIgnored
DislikedThanks, this is real fast.
You can change the stop loss and take profit with a line in the chart
Example: green line to take profit
red line to stop loss
and move the lines inside the chart
Or you can recommend me another person to modify this script?
I appreciate your work you did, it helps me a lot.
ThanksIgnored
Dislikedlaoshr-
If you increment the loop and start at 1 instead of 0 it should not repaint.
Corrected code:
Inserted Codeif(dDownBuffer[ii+1] < (High[ii+1] + 10 * MarketInfo(Symbol(),MODE_POINT))){ dDownBuffer[ii+1]=High[ii+1] + 10 * MarketInfo(Symbol(),MODE_POINT); }Ignored
DislikedIgnored
DislikedCyber1,
I wanted to say thank you again for all you help.
I've been looking around for the code to look back on an indicator. I want to look back and see what the last high of the indicator had and is the current high, higher or lower. Like looking for divergence I guess would be the other way to say it.
I was looking at the DeMarker indicator to look for OB/OS areas and also in those zones if the indicator is making higher/highs or lower/highs. This will tell me the trend is ending and watch for reversals.
Let me know what you think...Ignored
//main loop for(int ii=0; ii<nBars; ii++){ for(int xx=0;xx<100;xx++) { double TDIgrn1 = iCustom(NULL,thisTF,"TDI",13,0,34,2,0,7,0,4,ii+xx); //green-line } }
DislikedLaoShr-
You could use a nested loop. TDI indicator shift value would be the main loop plus the nested loop.
Something like this:
Inserted Code//main loop for(int ii=0; ii<nBars; ii++){ for(int xx=0;xx<100;xx++) { double TDIgrn1 = iCustom(NULL,thisTF,"TDI",13,0,34,2,0,7,0,4,ii+xx); //green-line } }Ignored
DislikedThanks, so I would use an if statement follow by 2 else if statements let's say A or B?
Question on how the else if statement would go. How would I code the else if statement?
Thanks again.
LaoShrIgnored
//main loop int countbelow=0; for(int ii=0; ii<nBars; ii++){ for(int xx=0;xx<100;xx++) { double TDIgrn1 = iCustom(NULL,thisTF,"TDI",13,0,34,2,0,7,0,4,ii+xx); //green-line if(TDIgrn1<50){ countbelow++; } } } Print("countbelow:"+countbelow);
//main loop int countbelow=0; for(int ii=0; ii<nBars; ii++){ double TDIgrn1 = iCustom(NULL,thisTF,"TDI",13,0,34,2,0,7,0,4,ii+xx); //green-line for(int xx=0;xx<100;xx++) { if(TDIgrn1>50){ countbelow=xx; break; } } } Print("countbelow:"+countbelow);
DislikedHi ,
i am new to programming, need some help regarding timefunctions in mql4.
datetime curT = Time[i];
datetime s_time = StrToTime( TimeToStr( curT, TIME_DATE ) + " " + start_time );
datetime e_time = StrToTime( TimeToStr( curT, TIME_DATE ) + " " + end_time );
if (curT > s_time && curT < e_time) {
Comment("n Current Time :n ",curT);
}
This is the core logic , but i could not understand why if condition is not working properly....Ignored
DislikedWhat I would like is the option to display the lot size based on the option of ADR, with the option of choosing both the range of the ADR, say 5 or 14 or 20 periods, and also the option of choosing whether to use 100% ADR as Stop Loss or 50% of ADR
Is that a little bit clear?Ignored