how to make reversed X/Y axis chart

 

kon nichi wa!

does anyone know if MT4 can create a chart with reversed x/y axis?

for example, x axis is time frame and y axis is price so by reversing it, x axis will be price and y axis will be time.

ultimately what i am thinking about making is x axis as tick increment quantity and y axis as time (sec or msec).

is this possible in MT4? they to search on google or MT4 forms but was not able to find it. (maybe im using wrong term to search)

504

 
...i guess no one knows. or can not.
 

In theory ....

A) draw normal chart as (say) white on white

B) Use Labels & absolute addressing, or

C) Use Text, Lines, etc by using code like

   int barsVisInChart = WindowBarsPerChart();
   int barLHS = WindowFirstVisibleBar();
   int barRHS = barLHS - (barsVisInChart - 1);
   double priceMax = WindowPriceMax(0);
   double priceMin = WindowPriceMin(0);
   double priceSpan = priceMax - priceMin;
   double priceTopEnd = priceMax - (priceSpan * 10.0 / 100.0);
   
   int barLM = barLHS - (barsVisInChart * 4.0 / 100.0);

   ok = true;
   ok = ok && ObjectSet(kOBJNAME+"L1", OBJPROP_TIME1, Time[barLHS]);
   ok = ok && ObjectSetText(kOBJNAME+"L1", "Pip Scale");
   ok = ok && ObjectSet(kOBJNAME+"L1", OBJPROP_XDISTANCE, 20);
   ok = ok && ObjectSet(kOBJNAME+"L1", OBJPROP_YDISTANCE, 20);

   ok = ok && ObjectSetText(kOBJNAME+"Pip0", "--- Pip 0      ");
   ok = ok && ObjectMove(kOBJNAME+"Pip0", 0, Time[barLM], priceTopEnd);

   ok = ok && ObjectSetText(kOBJNAME+"Pip10", "--- Pip 10    ");
   ok = ok && ObjectMove(kOBJNAME+"Pip10", 0, Time[barLM], priceTopEnd - 10 * Point);