does mq4 allow complex functions? ie can i return more than just a simple type from a function(int, bool, double?)
iAlligator fillAlligator(int mode)
{
if (mode==MODE_GATORJAW)
{
return iAlligator(NULL,0,jaw_period,jaw_shift,teeth_period,teeth_shift,lips_period,lips_shift,MODE_EMA,PRICE_CLOSE,MODE_GATORJAW,0);
}
if (mode==MODE_GATORLIPS)
{
return iAlligator(NULL,0,jaw_period,jaw_shift,teeth_period,teeth_shift,lips_period,lips_shift,MODE_EMA,PRICE_CLOSE,MODE_GATORLIPS,0);
}
if (mode==MODE_GATORTEETH)
{
return iAlligator(NULL,0,jaw_period,jaw_shift,teeth_period,teeth_shift,lips_period,lips_shift,MODE_EMA,PRICE_CLOSE,MODE_GATORTEETH,0);
}
}
iAlligator fillAlligator(int mode)
{
if (mode==MODE_GATORJAW)
{
return iAlligator(NULL,0,jaw_period,jaw_shift,teeth_period,teeth_shift,lips_period,lips_shift,MODE_EMA,PRICE_CLOSE,MODE_GATORJAW,0);
}
if (mode==MODE_GATORLIPS)
{
return iAlligator(NULL,0,jaw_period,jaw_shift,teeth_period,teeth_shift,lips_period,lips_shift,MODE_EMA,PRICE_CLOSE,MODE_GATORLIPS,0);
}
if (mode==MODE_GATORTEETH)
{
return iAlligator(NULL,0,jaw_period,jaw_shift,teeth_period,teeth_shift,lips_period,lips_shift,MODE_EMA,PRICE_CLOSE,MODE_GATORTEETH,0);
}
}