Don't you just wish sometimes?

 

WishfulThinking=iMA(NULL,PERIOD_M1,24,0,MODE_SMA,PRICE_WEIGHTED,-1);

pfffff....

 
trivates:

WishfulThinking=iMA(NULL,PERIOD_M1,24,0,MODE_SMA,PRICE_WEIGHTED,-1);

pfffff....


hmmm ... and your wish is not fullfilled till now ? :-)
 
EADeveloper:

hmmm ... and your wish is not fullfilled till now ? :-)


It came to me while I was trying to comprehend some code I needed to integrate into my latest attempt at making an EA. When I realized that accessing historical bars was simply a matter of changing one integer, I thought to myself: "Putting a negative number for that value would tell the program to look for values in future bars... Golly, wouldn't that be great?"

I hope my code joke made your day.

Reason: