PureBytes Links
Trading Reference Links
|
Buenas noches: Debo dirigirme a Uds en Español ya que no hablo ingles. Uso para poder enterderme un traductor automatico. Quiero plantear dos cuestiones: 1ª .- Normalmente trabajo con gráficos de 3 y 1 minutos en la misma pantalla y es muy importante para mi conocer el tiempo restante de la vela.
Como tampoco se programar fluidamente en AFL, copié un codigo que encontre en un indicador en AFL. He incluido el código en mis gráficos y me funciona muy bien en 1 minuto, pero no en 3 minutos. En 3 minutos comienza bien a descontar el tiempo, pero cada vez que llega a dos minutos vuelve a comenzar el tiempo.. Les envio el código utilizado. ¿Que debo de modificar en el mismo?. Gracias.
2ª.- ¿Como puedo rellenar el espacio existente entre el MACD y su señal a modo de histograma?. Alguien me puede ayudar con el codigo? Mucas gracias.
Saludos,
Good night: I must go to You in Spanish since I do not speak English. Use to be able to enterder an automatic translator to me. I want to raise two questions: 1ª. - Normally work with graphs of 3 and 1 minutes in the same screen and is very important my to know the time remaining the candle.
Like programming itself either fluidly in AFL, I did copy a code that see in an indicator in AFL. I have including the code in my graphs and it works to me very well in 1 minute, but not in 3 minutes. In 3 minutes it begins well to discount the time, but whenever it reachs two minutes it returns to begin the time. Them shipment the used code. That I must modify in the same. Thanks.
2ª. - As I can fill up the existing space between the MACD and their signal as a histogram. Somebody can help me with the code? Mucas thanks.
Greetings,
// Timer
tempnum = Now( 4 ) - TimeNum();
TimeRem = Interval() - ((int(tempnum[BarCount - 1] / 100) * 60) + (tempnum[BarCount - 1] - int(tempnum[BarCount - 1] / 100) * 100));
if (TimeRem[BarCount - 1] < 0) TimeRem = 0;
MinuteVar = int(TimeRem / 60);
SecondsVar = int(frac(TimeRem / 60) * 60);
if (TimeRem[BarCount - 1] > 60)
{
TitleTimeRem = EncodeColor(colorWhite) + MinuteVar + ":" + WriteIf(SecondsVar > 9, "", "0") + SecondsVar;
}
else if (TimeRem[BarCount - 1] > 20)
{
TitleTimeRem = EncodeColor(colorBlue) + MinuteVar + ":" + WriteIf(SecondsVar > 9, "", "0") + SecondsVar;
}
else
{
TitleTimeRem = EncodeColor(colorBlue) + MinuteVar + ":" + WriteIf(SecondsVar > 9, "", "0") + SecondsVar;
}
// Tic/PIP value
TicMult= Param("Tic multiplier(ER2=10,YM=1,ES=4,FOREX=1)",1,0,1000000);
TicDiv= Param("Tic or PIP value(ER2=0.1,YM=1,FOREX=1)",1,0,1000000);
// Rangebar interval
rbint= Param("Rangebar interval:(YM=25.0,AB=1.5,NQ=3.75,ES=3.0)",1.0,0.25,1000000);
// Rangebar counter
rbcounter= round(((rbint-(H-L))) * ticmult);
rbcounterpercent= round((rbcounter/(rbint * ticmult))*100);
// Timer/counter title
timercode= Param("Timer:(minutes=1,rangebar=2)",1,1,2);
timetitle= WriteIf(timercode==1,TitleTimeRem, EncodeColor(colorBlack)+ "Countdown " + rbcounter + " (" + rbcounterpercent + "%)");
// Price Panel
Closecolor= WriteIf(C==H AND H>Ref(H,-1),EncodeColor(colorWhite),WriteIf(C==L AND L<Ref(L,-1),EncodeColor(colorWhite),EncodeColor(colorWhite)));
// Title
Title = "\n" + "" + EncodeColor(colorWhite) + Date() + "\n" + "\n" +
timetitle + "\n" + "\n";
_SECTION_END ();
__._,_.___
**** IMPORTANT PLEASE READ ****
This group is for the discussion between users only.
This is *NOT* technical support channel.
TO GET TECHNICAL SUPPORT send an e-mail directly to
SUPPORT {at} amibroker.com
TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
http://www.amibroker.com/feedback/
(submissions sent via other channels won't be considered)
For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/
__,_._,___
|